mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 05:27:24 +00:00
extended scalar mutator support
This commit is contained in:
@@ -9,9 +9,9 @@ public sealed class Test : Struct {
|
||||
public Test __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
|
||||
|
||||
public short A { get { 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 sbyte B { get { return bb.GetSbyte(bb_pos + 2); } }
|
||||
public void MutateB(sbyte b) { bb.PutSbyte(bb_pos + 2); }
|
||||
public void MutateB(sbyte b) { bb.PutSbyte(bb_pos + 2, b); }
|
||||
|
||||
public static int CreateTest(FlatBufferBuilder builder, short A, sbyte B) {
|
||||
builder.Prep(2, 4);
|
||||
|
||||
Reference in New Issue
Block a user