Skip to content

Commit

Permalink
[C++] Provide access to acting block length of repeating group via th…
Browse files Browse the repository at this point in the history
…e sbeActingBlockLength() method. Issue #968.
  • Loading branch information
mjpt777 committed Jan 18, 2024
1 parent b8ac926 commit b354819
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ private void generateGroupClassHeader(
codecStateNullAssignment);
}


if (null != fieldPrecedenceModel)
{
sb.append("\n").append(indent).append("private:");
Expand All @@ -808,6 +807,11 @@ private void generateGroupClassHeader(
indent + " return %2$d;\n" +
indent + " }\n\n" +

indent + " SBE_NODISCARD std::uint64_t sbeActingBlockLength() SBE_NOEXCEPT\n" +
indent + " {\n" +
indent + " return m_blockLength;\n" +
indent + " }\n\n" +

indent + " SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT\n" +
indent + " {\n" +
indent + " return *m_positionPtr;\n" +
Expand Down

0 comments on commit b354819

Please sign in to comment.