diff options
Diffstat (limited to 'tests/MyGame/Example/Test.java')
-rw-r--r-- | tests/MyGame/Example/Test.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/MyGame/Example/Test.java b/tests/MyGame/Example/Test.java index d4e4094c..0dc72a70 100644 --- a/tests/MyGame/Example/Test.java +++ b/tests/MyGame/Example/Test.java @@ -11,7 +11,9 @@ public final class Test extends Struct { public Test __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; } public short a() { return bb.getShort(bb_pos + 0); } + public void mutateA(short a) { bb.putShort(bb_pos + 0); } public byte b() { return bb.get(bb_pos + 2); } + public void mutateB(byte b) { bb.put(bb_pos + 2); } public static int createTest(FlatBufferBuilder builder, short a, byte b) { builder.prep(2, 4); |