diff options
author | Mitchel <mitchellabonte@hotmail.com> | 2018-03-02 18:22:46 -0500 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-03-02 15:22:46 -0800 |
commit | 4ea1be53d4017b2155c2f199370a00cc50b5d4f0 (patch) | |
tree | 6630a1634a1936f241ff81795316a8766577506c /tests/MyGame/Example/Stat.java | |
parent | 0068b25132bec04dda44885b6226de673a6dc8d0 (diff) | |
download | flatbuffers-4ea1be53d4017b2155c2f199370a00cc50b5d4f0.tar.gz flatbuffers-4ea1be53d4017b2155c2f199370a00cc50b5d4f0.tar.bz2 flatbuffers-4ea1be53d4017b2155c2f199370a00cc50b5d4f0.zip |
Java + C#, reuse object in lookup_by_key (#4648)
* Java + C#, reuse object in lookup_by_key
* Java + C#, reuse object in lookup_by_key
Diffstat (limited to 'tests/MyGame/Example/Stat.java')
-rw-r--r-- | tests/MyGame/Example/Stat.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/MyGame/Example/Stat.java b/tests/MyGame/Example/Stat.java index 351e5b3d..73e2bc8f 100644 --- a/tests/MyGame/Example/Stat.java +++ b/tests/MyGame/Example/Stat.java @@ -16,6 +16,7 @@ public final class Stat extends Table { public String id() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } public ByteBuffer idAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } + public ByteBuffer idInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } public long val() { int o = __offset(6); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } public boolean mutateVal(long val) { int o = __offset(6); if (o != 0) { bb.putLong(o + bb_pos, val); return true; } else { return false; } } public int count() { int o = __offset(8); return o != 0 ? bb.getShort(o + bb_pos) & 0xFFFF : 0; } |