Skip to content

Commit 0e6c810

Browse files
author
Olivier Deheurles
committed
Port for afc5bea ([Java]: Provided the ability to access group block length. Enhancement aeron-io#92.)
1 parent 60aa812 commit 0e6c810

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main/java/uk/co/real_logic/sbe/generation/csharp/CSharpGenerator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ private void generateGroupClassHeader(final StringBuilder sb,
266266
));
267267

268268
sb.append(String.format(
269+
indent + " public const int BlockLength = %d;\n",
270+
blockLength
271+
));
272+
273+
sb.append(String.format(
274+
indent + " public int ActingBlockLength { get { return BlockLength; } }\n\n" +
269275
indent + " public int Count { get { return _count; } }\n\n" +
270276
indent + " public bool HasNext { get { return _index + 1 < _count; } }\n\n"
271277
));

0 commit comments

Comments
 (0)