Skip to content

Commit

Permalink
[Java] Expose actingVersion (#953)
Browse files Browse the repository at this point in the history
* [Java] Expose actingVersion

* ir codec update
  • Loading branch information
ratcashdev authored Sep 14, 2023
1 parent 432ccfc commit 3f6b629
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2716,6 +2716,11 @@ private CharSequence generateDecoderFlyweightCode(final String className, final
" final int decodedLength = encodedLength();\n" +
" limit(currentLimit);\n\n" +
" return decodedLength;\n" +
" }\n\n" +

" public int actingVersion()\n" +
" {\n" +
" return actingVersion;\n" +
" }\n\n";

return generateFlyweightCode(DECODER, className, token, methods, readOnlyBuffer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ public int sbeDecodedLength()
return decodedLength;
}

public int actingVersion()
{
return actingVersion;
}

public int encodedLength()
{
return limit - offset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ public int sbeDecodedLength()
return decodedLength;
}

public int actingVersion()
{
return actingVersion;
}

public int encodedLength()
{
return limit - offset;
Expand Down

0 comments on commit 3f6b629

Please sign in to comment.