Skip to content

Commit 2b98dba

Browse files
committed
[C++] Add an accessor for bufferLength on messages. Issue #479.
1 parent 294b741 commit 2b98dba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,10 @@ private CharSequence generateMessageFlyweightCode(final String className, final
14411441
" {\n" +
14421442
" return m_buffer;\n" +
14431443
" }\n\n" +
1444+
" std::uint64_t bufferLength() const SBE_NOEXCEPT\n" +
1445+
" {\n" +
1446+
" return m_bufferLength;\n" +
1447+
" }\n\n" +
14441448
" std::uint64_t actingVersion() const SBE_NOEXCEPT\n" +
14451449
" {\n" +
14461450
" return m_actingVersion;\n" +

0 commit comments

Comments
 (0)