mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 00:38:52 +00:00
fixed code generator for array of bools
Change-Id: I3cdd801b641bf180222203a37634598350d340e3
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
9689d38bef
commit
ac10873e26
@@ -11,6 +11,7 @@ public sealed class TestSimpleTableWithEnum : Table {
|
||||
public TestSimpleTableWithEnum __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
|
||||
|
||||
public Color Color { get { int o = __offset(4); return o != 0 ? (Color)bb.GetSbyte(o + bb_pos) : (Color)2; } }
|
||||
public bool MutateColor(Color color) { int o = __offset(4); if (o != 0) { bb.PutSbyte(o + bb_pos, (sbyte)color); return true; } else { return false; } }
|
||||
|
||||
public static Offset<TestSimpleTableWithEnum> CreateTestSimpleTableWithEnum(FlatBufferBuilder builder,
|
||||
Color color = (Color)2) {
|
||||
|
||||
Reference in New Issue
Block a user