Skip to content

Commit 3222a93

Browse files
committed
[Java] Advance buffer in toString() operation for var data. Issue #542.
1 parent 92c6028 commit 3222a93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2914,7 +2914,10 @@ private void appendDecoderDisplay(
29142914
append(sb, indent, "builder.append(\"" + varDataName + Separators.KEY_VALUE + "\");");
29152915
if (null == characterEncoding)
29162916
{
2917-
append(sb, indent, "builder.append(" + varDataName + "Length() + \" raw bytes\");");
2917+
append(sb, indent, "builder.append(" + varDataName + "Length() + \" bytes of raw data\");");
2918+
append(sb, indent,
2919+
"parentMessage.limit(parentMessage.limit() + " + varDataName + "HeaderLength() + " +
2920+
varDataName + "Length());");
29182921
}
29192922
else
29202923
{

0 commit comments

Comments
 (0)