fixed code generator for array of bools

Change-Id: I3cdd801b641bf180222203a37634598350d340e3
This commit is contained in:
Maxim Zaks
2015-08-16 09:34:56 +02:00
committed by Wouter van Oortmerssen
parent 9689d38bef
commit ac10873e26
13 changed files with 72 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ public final class TestSimpleTableWithEnum extends Table {
public TestSimpleTableWithEnum __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
public byte color() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 2; }
public boolean mutateColor(byte color) { int o = __offset(4); if (o != 0) { bb.put(o + bb_pos, color); return true; } else { return false; } }
public static int createTestSimpleTableWithEnum(FlatBufferBuilder builder,
byte color) {