Skip to content

Commit afc5bea

Browse files
committed
[Java]: Provided the ability to access group block length. Enhancement aeron-io#92.
1 parent 634a053 commit afc5bea

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

main/java/uk/co/real_logic/sbe/generation/java/JavaGenerator.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,18 @@ private void generateGroupClassHeader(final StringBuilder sb,
259259
));
260260

261261
sb.append(String.format(
262+
indent + " public static int blockLength()\n" +
263+
indent + " {\n" +
264+
indent + " return %d;\n" +
265+
indent + " }\n\n",
266+
blockLength
267+
));
268+
269+
sb.append(String.format(
270+
indent + " public int actingBlockLength()\n" +
271+
indent + " {\n" +
272+
indent + " return blockLength;\n" +
273+
indent + " }\n\n" +
262274
indent + " public int count()\n" +
263275
indent + " {\n" +
264276
indent + " return count;\n" +

0 commit comments

Comments
 (0)