Skip to content

Commit b354819

Browse files
committed
[C++] Provide access to acting block length of repeating group via the sbeActingBlockLength() method. Issue aeron-io#968.
1 parent b8ac926 commit b354819

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,6 @@ private void generateGroupClassHeader(
785785
codecStateNullAssignment);
786786
}
787787

788-
789788
if (null != fieldPrecedenceModel)
790789
{
791790
sb.append("\n").append(indent).append("private:");
@@ -808,6 +807,11 @@ private void generateGroupClassHeader(
808807
indent + " return %2$d;\n" +
809808
indent + " }\n\n" +
810809

810+
indent + " SBE_NODISCARD std::uint64_t sbeActingBlockLength() SBE_NOEXCEPT\n" +
811+
indent + " {\n" +
812+
indent + " return m_blockLength;\n" +
813+
indent + " }\n\n" +
814+
811815
indent + " SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT\n" +
812816
indent + " {\n" +
813817
indent + " return *m_positionPtr;\n" +

0 commit comments

Comments
 (0)