mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-02 02:07:25 +00:00
extended scalar mutator support
This commit is contained in:
parent
81c2b185ef
commit
e24afd838a
12 changed files with 87 additions and 47 deletions
|
|
@ -11,9 +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 void mutateA(short a) { bb.putShort(bb_pos + 0, a); }
|
||||
public byte b() { return bb.get(bb_pos + 2); }
|
||||
public void mutateB(byte b) { bb.put(bb_pos + 2); }
|
||||
public void mutateB(byte b) { bb.put(bb_pos + 2, b); }
|
||||
|
||||
public static int createTest(FlatBufferBuilder builder, short a, byte b) {
|
||||
builder.prep(2, 4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue