• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package MyGame.Example;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 /**
11  * an example documentation comment: "monster object"
12  */
13 @SuppressWarnings("unused")
14 public final class Monster extends Table {
ValidateVersion()15   public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); }
getRootAsMonster(ByteBuffer _bb)16   public static Monster getRootAsMonster(ByteBuffer _bb) { return getRootAsMonster(_bb, new Monster()); }
getRootAsMonster(ByteBuffer _bb, Monster obj)17   public static Monster getRootAsMonster(ByteBuffer _bb, Monster obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
MonsterBufferHasIdentifier(ByteBuffer _bb)18   public static boolean MonsterBufferHasIdentifier(ByteBuffer _bb) { return __has_identifier(_bb, "MONS"); }
__init(int _i, ByteBuffer _bb)19   public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
__assign(int _i, ByteBuffer _bb)20   public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
21 
pos()22   public MyGame.Example.Vec3 pos() { return pos(new MyGame.Example.Vec3()); }
pos(MyGame.Example.Vec3 obj)23   public MyGame.Example.Vec3 pos(MyGame.Example.Vec3 obj) { int o = __offset(4); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; }
mana()24   public short mana() { int o = __offset(6); return o != 0 ? bb.getShort(o + bb_pos) : 150; }
mutateMana(short mana)25   public boolean mutateMana(short mana) { int o = __offset(6); if (o != 0) { bb.putShort(o + bb_pos, mana); return true; } else { return false; } }
hp()26   public short hp() { int o = __offset(8); return o != 0 ? bb.getShort(o + bb_pos) : 100; }
mutateHp(short hp)27   public boolean mutateHp(short hp) { int o = __offset(8); if (o != 0) { bb.putShort(o + bb_pos, hp); return true; } else { return false; } }
name()28   public String name() { int o = __offset(10); return o != 0 ? __string(o + bb_pos) : null; }
nameAsByteBuffer()29   public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(10, 1); }
nameInByteBuffer(ByteBuffer _bb)30   public ByteBuffer nameInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 10, 1); }
inventory(int j)31   public int inventory(int j) { int o = __offset(14); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; }
inventoryLength()32   public int inventoryLength() { int o = __offset(14); return o != 0 ? __vector_len(o) : 0; }
inventoryVector()33   public ByteVector inventoryVector() { return inventoryVector(new ByteVector()); }
inventoryVector(ByteVector obj)34   public ByteVector inventoryVector(ByteVector obj) { int o = __offset(14); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
inventoryAsByteBuffer()35   public ByteBuffer inventoryAsByteBuffer() { return __vector_as_bytebuffer(14, 1); }
inventoryInByteBuffer(ByteBuffer _bb)36   public ByteBuffer inventoryInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 14, 1); }
mutateInventory(int j, int inventory)37   public boolean mutateInventory(int j, int inventory) { int o = __offset(14); if (o != 0) { bb.put(__vector(o) + j * 1, (byte)inventory); return true; } else { return false; } }
color()38   public int color() { int o = __offset(16); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 8; }
mutateColor(int color)39   public boolean mutateColor(int color) { int o = __offset(16); if (o != 0) { bb.put(o + bb_pos, (byte)color); return true; } else { return false; } }
testType()40   public byte testType() { int o = __offset(18); return o != 0 ? bb.get(o + bb_pos) : 0; }
test(Table obj)41   public Table test(Table obj) { int o = __offset(20); return o != 0 ? __union(obj, o + bb_pos) : null; }
test4(int j)42   public MyGame.Example.Test test4(int j) { return test4(new MyGame.Example.Test(), j); }
test4(MyGame.Example.Test obj, int j)43   public MyGame.Example.Test test4(MyGame.Example.Test obj, int j) { int o = __offset(22); return o != 0 ? obj.__assign(__vector(o) + j * 4, bb) : null; }
test4Length()44   public int test4Length() { int o = __offset(22); return o != 0 ? __vector_len(o) : 0; }
test4Vector()45   public MyGame.Example.Test.Vector test4Vector() { return test4Vector(new MyGame.Example.Test.Vector()); }
test4Vector(MyGame.Example.Test.Vector obj)46   public MyGame.Example.Test.Vector test4Vector(MyGame.Example.Test.Vector obj) { int o = __offset(22); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
testarrayofstring(int j)47   public String testarrayofstring(int j) { int o = __offset(24); return o != 0 ? __string(__vector(o) + j * 4) : null; }
testarrayofstringLength()48   public int testarrayofstringLength() { int o = __offset(24); return o != 0 ? __vector_len(o) : 0; }
testarrayofstringVector()49   public StringVector testarrayofstringVector() { return testarrayofstringVector(new StringVector()); }
testarrayofstringVector(StringVector obj)50   public StringVector testarrayofstringVector(StringVector obj) { int o = __offset(24); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
51   /**
52    * an example documentation comment: this will end up in the generated code
53    * multiline too
54    */
testarrayoftables(int j)55   public MyGame.Example.Monster testarrayoftables(int j) { return testarrayoftables(new MyGame.Example.Monster(), j); }
testarrayoftables(MyGame.Example.Monster obj, int j)56   public MyGame.Example.Monster testarrayoftables(MyGame.Example.Monster obj, int j) { int o = __offset(26); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; }
testarrayoftablesLength()57   public int testarrayoftablesLength() { int o = __offset(26); return o != 0 ? __vector_len(o) : 0; }
testarrayoftablesByKey(String key)58   public MyGame.Example.Monster testarrayoftablesByKey(String key) { int o = __offset(26); return o != 0 ? MyGame.Example.Monster.__lookup_by_key(null, __vector(o), key, bb) : null; }
testarrayoftablesByKey(MyGame.Example.Monster obj, String key)59   public MyGame.Example.Monster testarrayoftablesByKey(MyGame.Example.Monster obj, String key) { int o = __offset(26); return o != 0 ? MyGame.Example.Monster.__lookup_by_key(obj, __vector(o), key, bb) : null; }
testarrayoftablesVector()60   public MyGame.Example.Monster.Vector testarrayoftablesVector() { return testarrayoftablesVector(new MyGame.Example.Monster.Vector()); }
testarrayoftablesVector(MyGame.Example.Monster.Vector obj)61   public MyGame.Example.Monster.Vector testarrayoftablesVector(MyGame.Example.Monster.Vector obj) { int o = __offset(26); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
enemy()62   public MyGame.Example.Monster enemy() { return enemy(new MyGame.Example.Monster()); }
enemy(MyGame.Example.Monster obj)63   public MyGame.Example.Monster enemy(MyGame.Example.Monster obj) { int o = __offset(28); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; }
testnestedflatbuffer(int j)64   public int testnestedflatbuffer(int j) { int o = __offset(30); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; }
testnestedflatbufferLength()65   public int testnestedflatbufferLength() { int o = __offset(30); return o != 0 ? __vector_len(o) : 0; }
testnestedflatbufferVector()66   public ByteVector testnestedflatbufferVector() { return testnestedflatbufferVector(new ByteVector()); }
testnestedflatbufferVector(ByteVector obj)67   public ByteVector testnestedflatbufferVector(ByteVector obj) { int o = __offset(30); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
testnestedflatbufferAsByteBuffer()68   public ByteBuffer testnestedflatbufferAsByteBuffer() { return __vector_as_bytebuffer(30, 1); }
testnestedflatbufferInByteBuffer(ByteBuffer _bb)69   public ByteBuffer testnestedflatbufferInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 30, 1); }
testnestedflatbufferAsMonster()70   public MyGame.Example.Monster testnestedflatbufferAsMonster() { return testnestedflatbufferAsMonster(new MyGame.Example.Monster()); }
testnestedflatbufferAsMonster(MyGame.Example.Monster obj)71   public MyGame.Example.Monster testnestedflatbufferAsMonster(MyGame.Example.Monster obj) { int o = __offset(30); return o != 0 ? obj.__assign(__indirect(__vector(o)), bb) : null; }
mutateTestnestedflatbuffer(int j, int testnestedflatbuffer)72   public boolean mutateTestnestedflatbuffer(int j, int testnestedflatbuffer) { int o = __offset(30); if (o != 0) { bb.put(__vector(o) + j * 1, (byte)testnestedflatbuffer); return true; } else { return false; } }
testempty()73   public MyGame.Example.Stat testempty() { return testempty(new MyGame.Example.Stat()); }
testempty(MyGame.Example.Stat obj)74   public MyGame.Example.Stat testempty(MyGame.Example.Stat obj) { int o = __offset(32); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; }
testbool()75   public boolean testbool() { int o = __offset(34); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
mutateTestbool(boolean testbool)76   public boolean mutateTestbool(boolean testbool) { int o = __offset(34); if (o != 0) { bb.put(o + bb_pos, (byte)(testbool ? 1 : 0)); return true; } else { return false; } }
testhashs32Fnv1()77   public int testhashs32Fnv1() { int o = __offset(36); return o != 0 ? bb.getInt(o + bb_pos) : 0; }
mutateTesthashs32Fnv1(int testhashs32_fnv1)78   public boolean mutateTesthashs32Fnv1(int testhashs32_fnv1) { int o = __offset(36); if (o != 0) { bb.putInt(o + bb_pos, testhashs32_fnv1); return true; } else { return false; } }
testhashu32Fnv1()79   public long testhashu32Fnv1() { int o = __offset(38); return o != 0 ? (long)bb.getInt(o + bb_pos) & 0xFFFFFFFFL : 0L; }
mutateTesthashu32Fnv1(long testhashu32_fnv1)80   public boolean mutateTesthashu32Fnv1(long testhashu32_fnv1) { int o = __offset(38); if (o != 0) { bb.putInt(o + bb_pos, (int)testhashu32_fnv1); return true; } else { return false; } }
testhashs64Fnv1()81   public long testhashs64Fnv1() { int o = __offset(40); return o != 0 ? bb.getLong(o + bb_pos) : 0L; }
mutateTesthashs64Fnv1(long testhashs64_fnv1)82   public boolean mutateTesthashs64Fnv1(long testhashs64_fnv1) { int o = __offset(40); if (o != 0) { bb.putLong(o + bb_pos, testhashs64_fnv1); return true; } else { return false; } }
testhashu64Fnv1()83   public long testhashu64Fnv1() { int o = __offset(42); return o != 0 ? bb.getLong(o + bb_pos) : 0L; }
mutateTesthashu64Fnv1(long testhashu64_fnv1)84   public boolean mutateTesthashu64Fnv1(long testhashu64_fnv1) { int o = __offset(42); if (o != 0) { bb.putLong(o + bb_pos, testhashu64_fnv1); return true; } else { return false; } }
testhashs32Fnv1a()85   public int testhashs32Fnv1a() { int o = __offset(44); return o != 0 ? bb.getInt(o + bb_pos) : 0; }
mutateTesthashs32Fnv1a(int testhashs32_fnv1a)86   public boolean mutateTesthashs32Fnv1a(int testhashs32_fnv1a) { int o = __offset(44); if (o != 0) { bb.putInt(o + bb_pos, testhashs32_fnv1a); return true; } else { return false; } }
testhashu32Fnv1a()87   public long testhashu32Fnv1a() { int o = __offset(46); return o != 0 ? (long)bb.getInt(o + bb_pos) & 0xFFFFFFFFL : 0L; }
mutateTesthashu32Fnv1a(long testhashu32_fnv1a)88   public boolean mutateTesthashu32Fnv1a(long testhashu32_fnv1a) { int o = __offset(46); if (o != 0) { bb.putInt(o + bb_pos, (int)testhashu32_fnv1a); return true; } else { return false; } }
testhashs64Fnv1a()89   public long testhashs64Fnv1a() { int o = __offset(48); return o != 0 ? bb.getLong(o + bb_pos) : 0L; }
mutateTesthashs64Fnv1a(long testhashs64_fnv1a)90   public boolean mutateTesthashs64Fnv1a(long testhashs64_fnv1a) { int o = __offset(48); if (o != 0) { bb.putLong(o + bb_pos, testhashs64_fnv1a); return true; } else { return false; } }
testhashu64Fnv1a()91   public long testhashu64Fnv1a() { int o = __offset(50); return o != 0 ? bb.getLong(o + bb_pos) : 0L; }
mutateTesthashu64Fnv1a(long testhashu64_fnv1a)92   public boolean mutateTesthashu64Fnv1a(long testhashu64_fnv1a) { int o = __offset(50); if (o != 0) { bb.putLong(o + bb_pos, testhashu64_fnv1a); return true; } else { return false; } }
testarrayofbools(int j)93   public boolean testarrayofbools(int j) { int o = __offset(52); return o != 0 ? 0!=bb.get(__vector(o) + j * 1) : false; }
testarrayofboolsLength()94   public int testarrayofboolsLength() { int o = __offset(52); return o != 0 ? __vector_len(o) : 0; }
testarrayofboolsVector()95   public BooleanVector testarrayofboolsVector() { return testarrayofboolsVector(new BooleanVector()); }
testarrayofboolsVector(BooleanVector obj)96   public BooleanVector testarrayofboolsVector(BooleanVector obj) { int o = __offset(52); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
testarrayofboolsAsByteBuffer()97   public ByteBuffer testarrayofboolsAsByteBuffer() { return __vector_as_bytebuffer(52, 1); }
testarrayofboolsInByteBuffer(ByteBuffer _bb)98   public ByteBuffer testarrayofboolsInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 52, 1); }
mutateTestarrayofbools(int j, boolean testarrayofbools)99   public boolean mutateTestarrayofbools(int j, boolean testarrayofbools) { int o = __offset(52); if (o != 0) { bb.put(__vector(o) + j * 1, (byte)(testarrayofbools ? 1 : 0)); return true; } else { return false; } }
testf()100   public float testf() { int o = __offset(54); return o != 0 ? bb.getFloat(o + bb_pos) : 3.14159f; }
mutateTestf(float testf)101   public boolean mutateTestf(float testf) { int o = __offset(54); if (o != 0) { bb.putFloat(o + bb_pos, testf); return true; } else { return false; } }
testf2()102   public float testf2() { int o = __offset(56); return o != 0 ? bb.getFloat(o + bb_pos) : 3.0f; }
mutateTestf2(float testf2)103   public boolean mutateTestf2(float testf2) { int o = __offset(56); if (o != 0) { bb.putFloat(o + bb_pos, testf2); return true; } else { return false; } }
testf3()104   public float testf3() { int o = __offset(58); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; }
mutateTestf3(float testf3)105   public boolean mutateTestf3(float testf3) { int o = __offset(58); if (o != 0) { bb.putFloat(o + bb_pos, testf3); return true; } else { return false; } }
testarrayofstring2(int j)106   public String testarrayofstring2(int j) { int o = __offset(60); return o != 0 ? __string(__vector(o) + j * 4) : null; }
testarrayofstring2Length()107   public int testarrayofstring2Length() { int o = __offset(60); return o != 0 ? __vector_len(o) : 0; }
testarrayofstring2Vector()108   public StringVector testarrayofstring2Vector() { return testarrayofstring2Vector(new StringVector()); }
testarrayofstring2Vector(StringVector obj)109   public StringVector testarrayofstring2Vector(StringVector obj) { int o = __offset(60); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
testarrayofsortedstruct(int j)110   public MyGame.Example.Ability testarrayofsortedstruct(int j) { return testarrayofsortedstruct(new MyGame.Example.Ability(), j); }
testarrayofsortedstruct(MyGame.Example.Ability obj, int j)111   public MyGame.Example.Ability testarrayofsortedstruct(MyGame.Example.Ability obj, int j) { int o = __offset(62); return o != 0 ? obj.__assign(__vector(o) + j * 8, bb) : null; }
testarrayofsortedstructLength()112   public int testarrayofsortedstructLength() { int o = __offset(62); return o != 0 ? __vector_len(o) : 0; }
testarrayofsortedstructVector()113   public MyGame.Example.Ability.Vector testarrayofsortedstructVector() { return testarrayofsortedstructVector(new MyGame.Example.Ability.Vector()); }
testarrayofsortedstructVector(MyGame.Example.Ability.Vector obj)114   public MyGame.Example.Ability.Vector testarrayofsortedstructVector(MyGame.Example.Ability.Vector obj) { int o = __offset(62); return o != 0 ? obj.__assign(__vector(o), 8, bb) : null; }
flex(int j)115   public int flex(int j) { int o = __offset(64); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; }
flexLength()116   public int flexLength() { int o = __offset(64); return o != 0 ? __vector_len(o) : 0; }
flexVector()117   public ByteVector flexVector() { return flexVector(new ByteVector()); }
flexVector(ByteVector obj)118   public ByteVector flexVector(ByteVector obj) { int o = __offset(64); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
flexAsByteBuffer()119   public ByteBuffer flexAsByteBuffer() { return __vector_as_bytebuffer(64, 1); }
flexInByteBuffer(ByteBuffer _bb)120   public ByteBuffer flexInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 64, 1); }
mutateFlex(int j, int flex)121   public boolean mutateFlex(int j, int flex) { int o = __offset(64); if (o != 0) { bb.put(__vector(o) + j * 1, (byte)flex); return true; } else { return false; } }
test5(int j)122   public MyGame.Example.Test test5(int j) { return test5(new MyGame.Example.Test(), j); }
test5(MyGame.Example.Test obj, int j)123   public MyGame.Example.Test test5(MyGame.Example.Test obj, int j) { int o = __offset(66); return o != 0 ? obj.__assign(__vector(o) + j * 4, bb) : null; }
test5Length()124   public int test5Length() { int o = __offset(66); return o != 0 ? __vector_len(o) : 0; }
test5Vector()125   public MyGame.Example.Test.Vector test5Vector() { return test5Vector(new MyGame.Example.Test.Vector()); }
test5Vector(MyGame.Example.Test.Vector obj)126   public MyGame.Example.Test.Vector test5Vector(MyGame.Example.Test.Vector obj) { int o = __offset(66); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
vectorOfLongs(int j)127   public long vectorOfLongs(int j) { int o = __offset(68); return o != 0 ? bb.getLong(__vector(o) + j * 8) : 0; }
vectorOfLongsLength()128   public int vectorOfLongsLength() { int o = __offset(68); return o != 0 ? __vector_len(o) : 0; }
vectorOfLongsVector()129   public LongVector vectorOfLongsVector() { return vectorOfLongsVector(new LongVector()); }
vectorOfLongsVector(LongVector obj)130   public LongVector vectorOfLongsVector(LongVector obj) { int o = __offset(68); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
vectorOfLongsAsByteBuffer()131   public ByteBuffer vectorOfLongsAsByteBuffer() { return __vector_as_bytebuffer(68, 8); }
vectorOfLongsInByteBuffer(ByteBuffer _bb)132   public ByteBuffer vectorOfLongsInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 68, 8); }
mutateVectorOfLongs(int j, long vector_of_longs)133   public boolean mutateVectorOfLongs(int j, long vector_of_longs) { int o = __offset(68); if (o != 0) { bb.putLong(__vector(o) + j * 8, vector_of_longs); return true; } else { return false; } }
vectorOfDoubles(int j)134   public double vectorOfDoubles(int j) { int o = __offset(70); return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
vectorOfDoublesLength()135   public int vectorOfDoublesLength() { int o = __offset(70); return o != 0 ? __vector_len(o) : 0; }
vectorOfDoublesVector()136   public DoubleVector vectorOfDoublesVector() { return vectorOfDoublesVector(new DoubleVector()); }
vectorOfDoublesVector(DoubleVector obj)137   public DoubleVector vectorOfDoublesVector(DoubleVector obj) { int o = __offset(70); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
vectorOfDoublesAsByteBuffer()138   public ByteBuffer vectorOfDoublesAsByteBuffer() { return __vector_as_bytebuffer(70, 8); }
vectorOfDoublesInByteBuffer(ByteBuffer _bb)139   public ByteBuffer vectorOfDoublesInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 70, 8); }
mutateVectorOfDoubles(int j, double vector_of_doubles)140   public boolean mutateVectorOfDoubles(int j, double vector_of_doubles) { int o = __offset(70); if (o != 0) { bb.putDouble(__vector(o) + j * 8, vector_of_doubles); return true; } else { return false; } }
parentNamespaceTest()141   public MyGame.InParentNamespace parentNamespaceTest() { return parentNamespaceTest(new MyGame.InParentNamespace()); }
parentNamespaceTest(MyGame.InParentNamespace obj)142   public MyGame.InParentNamespace parentNamespaceTest(MyGame.InParentNamespace obj) { int o = __offset(72); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; }
vectorOfReferrables(int j)143   public MyGame.Example.Referrable vectorOfReferrables(int j) { return vectorOfReferrables(new MyGame.Example.Referrable(), j); }
vectorOfReferrables(MyGame.Example.Referrable obj, int j)144   public MyGame.Example.Referrable vectorOfReferrables(MyGame.Example.Referrable obj, int j) { int o = __offset(74); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; }
vectorOfReferrablesLength()145   public int vectorOfReferrablesLength() { int o = __offset(74); return o != 0 ? __vector_len(o) : 0; }
vectorOfReferrablesByKey(long key)146   public MyGame.Example.Referrable vectorOfReferrablesByKey(long key) { int o = __offset(74); return o != 0 ? MyGame.Example.Referrable.__lookup_by_key(null, __vector(o), key, bb) : null; }
vectorOfReferrablesByKey(MyGame.Example.Referrable obj, long key)147   public MyGame.Example.Referrable vectorOfReferrablesByKey(MyGame.Example.Referrable obj, long key) { int o = __offset(74); return o != 0 ? MyGame.Example.Referrable.__lookup_by_key(obj, __vector(o), key, bb) : null; }
vectorOfReferrablesVector()148   public MyGame.Example.Referrable.Vector vectorOfReferrablesVector() { return vectorOfReferrablesVector(new MyGame.Example.Referrable.Vector()); }
vectorOfReferrablesVector(MyGame.Example.Referrable.Vector obj)149   public MyGame.Example.Referrable.Vector vectorOfReferrablesVector(MyGame.Example.Referrable.Vector obj) { int o = __offset(74); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
singleWeakReference()150   public long singleWeakReference() { int o = __offset(76); return o != 0 ? bb.getLong(o + bb_pos) : 0L; }
mutateSingleWeakReference(long single_weak_reference)151   public boolean mutateSingleWeakReference(long single_weak_reference) { int o = __offset(76); if (o != 0) { bb.putLong(o + bb_pos, single_weak_reference); return true; } else { return false; } }
vectorOfWeakReferences(int j)152   public long vectorOfWeakReferences(int j) { int o = __offset(78); return o != 0 ? bb.getLong(__vector(o) + j * 8) : 0; }
vectorOfWeakReferencesLength()153   public int vectorOfWeakReferencesLength() { int o = __offset(78); return o != 0 ? __vector_len(o) : 0; }
vectorOfWeakReferencesVector()154   public LongVector vectorOfWeakReferencesVector() { return vectorOfWeakReferencesVector(new LongVector()); }
vectorOfWeakReferencesVector(LongVector obj)155   public LongVector vectorOfWeakReferencesVector(LongVector obj) { int o = __offset(78); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
vectorOfWeakReferencesAsByteBuffer()156   public ByteBuffer vectorOfWeakReferencesAsByteBuffer() { return __vector_as_bytebuffer(78, 8); }
vectorOfWeakReferencesInByteBuffer(ByteBuffer _bb)157   public ByteBuffer vectorOfWeakReferencesInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 78, 8); }
mutateVectorOfWeakReferences(int j, long vector_of_weak_references)158   public boolean mutateVectorOfWeakReferences(int j, long vector_of_weak_references) { int o = __offset(78); if (o != 0) { bb.putLong(__vector(o) + j * 8, vector_of_weak_references); return true; } else { return false; } }
vectorOfStrongReferrables(int j)159   public MyGame.Example.Referrable vectorOfStrongReferrables(int j) { return vectorOfStrongReferrables(new MyGame.Example.Referrable(), j); }
vectorOfStrongReferrables(MyGame.Example.Referrable obj, int j)160   public MyGame.Example.Referrable vectorOfStrongReferrables(MyGame.Example.Referrable obj, int j) { int o = __offset(80); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; }
vectorOfStrongReferrablesLength()161   public int vectorOfStrongReferrablesLength() { int o = __offset(80); return o != 0 ? __vector_len(o) : 0; }
vectorOfStrongReferrablesByKey(long key)162   public MyGame.Example.Referrable vectorOfStrongReferrablesByKey(long key) { int o = __offset(80); return o != 0 ? MyGame.Example.Referrable.__lookup_by_key(null, __vector(o), key, bb) : null; }
vectorOfStrongReferrablesByKey(MyGame.Example.Referrable obj, long key)163   public MyGame.Example.Referrable vectorOfStrongReferrablesByKey(MyGame.Example.Referrable obj, long key) { int o = __offset(80); return o != 0 ? MyGame.Example.Referrable.__lookup_by_key(obj, __vector(o), key, bb) : null; }
vectorOfStrongReferrablesVector()164   public MyGame.Example.Referrable.Vector vectorOfStrongReferrablesVector() { return vectorOfStrongReferrablesVector(new MyGame.Example.Referrable.Vector()); }
vectorOfStrongReferrablesVector(MyGame.Example.Referrable.Vector obj)165   public MyGame.Example.Referrable.Vector vectorOfStrongReferrablesVector(MyGame.Example.Referrable.Vector obj) { int o = __offset(80); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
coOwningReference()166   public long coOwningReference() { int o = __offset(82); return o != 0 ? bb.getLong(o + bb_pos) : 0L; }
mutateCoOwningReference(long co_owning_reference)167   public boolean mutateCoOwningReference(long co_owning_reference) { int o = __offset(82); if (o != 0) { bb.putLong(o + bb_pos, co_owning_reference); return true; } else { return false; } }
vectorOfCoOwningReferences(int j)168   public long vectorOfCoOwningReferences(int j) { int o = __offset(84); return o != 0 ? bb.getLong(__vector(o) + j * 8) : 0; }
vectorOfCoOwningReferencesLength()169   public int vectorOfCoOwningReferencesLength() { int o = __offset(84); return o != 0 ? __vector_len(o) : 0; }
vectorOfCoOwningReferencesVector()170   public LongVector vectorOfCoOwningReferencesVector() { return vectorOfCoOwningReferencesVector(new LongVector()); }
vectorOfCoOwningReferencesVector(LongVector obj)171   public LongVector vectorOfCoOwningReferencesVector(LongVector obj) { int o = __offset(84); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
vectorOfCoOwningReferencesAsByteBuffer()172   public ByteBuffer vectorOfCoOwningReferencesAsByteBuffer() { return __vector_as_bytebuffer(84, 8); }
vectorOfCoOwningReferencesInByteBuffer(ByteBuffer _bb)173   public ByteBuffer vectorOfCoOwningReferencesInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 84, 8); }
mutateVectorOfCoOwningReferences(int j, long vector_of_co_owning_references)174   public boolean mutateVectorOfCoOwningReferences(int j, long vector_of_co_owning_references) { int o = __offset(84); if (o != 0) { bb.putLong(__vector(o) + j * 8, vector_of_co_owning_references); return true; } else { return false; } }
nonOwningReference()175   public long nonOwningReference() { int o = __offset(86); return o != 0 ? bb.getLong(o + bb_pos) : 0L; }
mutateNonOwningReference(long non_owning_reference)176   public boolean mutateNonOwningReference(long non_owning_reference) { int o = __offset(86); if (o != 0) { bb.putLong(o + bb_pos, non_owning_reference); return true; } else { return false; } }
vectorOfNonOwningReferences(int j)177   public long vectorOfNonOwningReferences(int j) { int o = __offset(88); return o != 0 ? bb.getLong(__vector(o) + j * 8) : 0; }
vectorOfNonOwningReferencesLength()178   public int vectorOfNonOwningReferencesLength() { int o = __offset(88); return o != 0 ? __vector_len(o) : 0; }
vectorOfNonOwningReferencesVector()179   public LongVector vectorOfNonOwningReferencesVector() { return vectorOfNonOwningReferencesVector(new LongVector()); }
vectorOfNonOwningReferencesVector(LongVector obj)180   public LongVector vectorOfNonOwningReferencesVector(LongVector obj) { int o = __offset(88); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
vectorOfNonOwningReferencesAsByteBuffer()181   public ByteBuffer vectorOfNonOwningReferencesAsByteBuffer() { return __vector_as_bytebuffer(88, 8); }
vectorOfNonOwningReferencesInByteBuffer(ByteBuffer _bb)182   public ByteBuffer vectorOfNonOwningReferencesInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 88, 8); }
mutateVectorOfNonOwningReferences(int j, long vector_of_non_owning_references)183   public boolean mutateVectorOfNonOwningReferences(int j, long vector_of_non_owning_references) { int o = __offset(88); if (o != 0) { bb.putLong(__vector(o) + j * 8, vector_of_non_owning_references); return true; } else { return false; } }
anyUniqueType()184   public byte anyUniqueType() { int o = __offset(90); return o != 0 ? bb.get(o + bb_pos) : 0; }
anyUnique(Table obj)185   public Table anyUnique(Table obj) { int o = __offset(92); return o != 0 ? __union(obj, o + bb_pos) : null; }
anyAmbiguousType()186   public byte anyAmbiguousType() { int o = __offset(94); return o != 0 ? bb.get(o + bb_pos) : 0; }
anyAmbiguous(Table obj)187   public Table anyAmbiguous(Table obj) { int o = __offset(96); return o != 0 ? __union(obj, o + bb_pos) : null; }
vectorOfEnums(int j)188   public int vectorOfEnums(int j) { int o = __offset(98); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; }
vectorOfEnumsLength()189   public int vectorOfEnumsLength() { int o = __offset(98); return o != 0 ? __vector_len(o) : 0; }
vectorOfEnumsVector()190   public ByteVector vectorOfEnumsVector() { return vectorOfEnumsVector(new ByteVector()); }
vectorOfEnumsVector(ByteVector obj)191   public ByteVector vectorOfEnumsVector(ByteVector obj) { int o = __offset(98); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
vectorOfEnumsAsByteBuffer()192   public ByteBuffer vectorOfEnumsAsByteBuffer() { return __vector_as_bytebuffer(98, 1); }
vectorOfEnumsInByteBuffer(ByteBuffer _bb)193   public ByteBuffer vectorOfEnumsInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 98, 1); }
mutateVectorOfEnums(int j, int vector_of_enums)194   public boolean mutateVectorOfEnums(int j, int vector_of_enums) { int o = __offset(98); if (o != 0) { bb.put(__vector(o) + j * 1, (byte)vector_of_enums); return true; } else { return false; } }
signedEnum()195   public byte signedEnum() { int o = __offset(100); return o != 0 ? bb.get(o + bb_pos) : -1; }
mutateSignedEnum(byte signed_enum)196   public boolean mutateSignedEnum(byte signed_enum) { int o = __offset(100); if (o != 0) { bb.put(o + bb_pos, signed_enum); return true; } else { return false; } }
testrequirednestedflatbuffer(int j)197   public int testrequirednestedflatbuffer(int j) { int o = __offset(102); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; }
testrequirednestedflatbufferLength()198   public int testrequirednestedflatbufferLength() { int o = __offset(102); return o != 0 ? __vector_len(o) : 0; }
testrequirednestedflatbufferVector()199   public ByteVector testrequirednestedflatbufferVector() { return testrequirednestedflatbufferVector(new ByteVector()); }
testrequirednestedflatbufferVector(ByteVector obj)200   public ByteVector testrequirednestedflatbufferVector(ByteVector obj) { int o = __offset(102); return o != 0 ? obj.__assign(__vector(o), bb) : null; }
testrequirednestedflatbufferAsByteBuffer()201   public ByteBuffer testrequirednestedflatbufferAsByteBuffer() { return __vector_as_bytebuffer(102, 1); }
testrequirednestedflatbufferInByteBuffer(ByteBuffer _bb)202   public ByteBuffer testrequirednestedflatbufferInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 102, 1); }
testrequirednestedflatbufferAsMonster()203   public MyGame.Example.Monster testrequirednestedflatbufferAsMonster() { return testrequirednestedflatbufferAsMonster(new MyGame.Example.Monster()); }
testrequirednestedflatbufferAsMonster(MyGame.Example.Monster obj)204   public MyGame.Example.Monster testrequirednestedflatbufferAsMonster(MyGame.Example.Monster obj) { int o = __offset(102); return o != 0 ? obj.__assign(__indirect(__vector(o)), bb) : null; }
mutateTestrequirednestedflatbuffer(int j, int testrequirednestedflatbuffer)205   public boolean mutateTestrequirednestedflatbuffer(int j, int testrequirednestedflatbuffer) { int o = __offset(102); if (o != 0) { bb.put(__vector(o) + j * 1, (byte)testrequirednestedflatbuffer); return true; } else { return false; } }
scalarKeySortedTables(int j)206   public MyGame.Example.Stat scalarKeySortedTables(int j) { return scalarKeySortedTables(new MyGame.Example.Stat(), j); }
scalarKeySortedTables(MyGame.Example.Stat obj, int j)207   public MyGame.Example.Stat scalarKeySortedTables(MyGame.Example.Stat obj, int j) { int o = __offset(104); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; }
scalarKeySortedTablesLength()208   public int scalarKeySortedTablesLength() { int o = __offset(104); return o != 0 ? __vector_len(o) : 0; }
scalarKeySortedTablesByKey(int key)209   public MyGame.Example.Stat scalarKeySortedTablesByKey(int key) { int o = __offset(104); return o != 0 ? MyGame.Example.Stat.__lookup_by_key(null, __vector(o), key, bb) : null; }
scalarKeySortedTablesByKey(MyGame.Example.Stat obj, int key)210   public MyGame.Example.Stat scalarKeySortedTablesByKey(MyGame.Example.Stat obj, int key) { int o = __offset(104); return o != 0 ? MyGame.Example.Stat.__lookup_by_key(obj, __vector(o), key, bb) : null; }
scalarKeySortedTablesVector()211   public MyGame.Example.Stat.Vector scalarKeySortedTablesVector() { return scalarKeySortedTablesVector(new MyGame.Example.Stat.Vector()); }
scalarKeySortedTablesVector(MyGame.Example.Stat.Vector obj)212   public MyGame.Example.Stat.Vector scalarKeySortedTablesVector(MyGame.Example.Stat.Vector obj) { int o = __offset(104); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }
213 
startMonster(FlatBufferBuilder builder)214   public static void startMonster(FlatBufferBuilder builder) { builder.startTable(51); }
addPos(FlatBufferBuilder builder, int posOffset)215   public static void addPos(FlatBufferBuilder builder, int posOffset) { builder.addStruct(0, posOffset, 0); }
addMana(FlatBufferBuilder builder, short mana)216   public static void addMana(FlatBufferBuilder builder, short mana) { builder.addShort(1, mana, 150); }
addHp(FlatBufferBuilder builder, short hp)217   public static void addHp(FlatBufferBuilder builder, short hp) { builder.addShort(2, hp, 100); }
addName(FlatBufferBuilder builder, int nameOffset)218   public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(3, nameOffset, 0); }
addInventory(FlatBufferBuilder builder, int inventoryOffset)219   public static void addInventory(FlatBufferBuilder builder, int inventoryOffset) { builder.addOffset(5, inventoryOffset, 0); }
createInventoryVector(FlatBufferBuilder builder, byte[] data)220   public static int createInventoryVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); }
createInventoryVector(FlatBufferBuilder builder, ByteBuffer data)221   public static int createInventoryVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); }
startInventoryVector(FlatBufferBuilder builder, int numElems)222   public static void startInventoryVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
addColor(FlatBufferBuilder builder, int color)223   public static void addColor(FlatBufferBuilder builder, int color) { builder.addByte(6, (byte)color, (byte)8); }
addTestType(FlatBufferBuilder builder, byte testType)224   public static void addTestType(FlatBufferBuilder builder, byte testType) { builder.addByte(7, testType, 0); }
addTest(FlatBufferBuilder builder, int testOffset)225   public static void addTest(FlatBufferBuilder builder, int testOffset) { builder.addOffset(8, testOffset, 0); }
addTest4(FlatBufferBuilder builder, int test4Offset)226   public static void addTest4(FlatBufferBuilder builder, int test4Offset) { builder.addOffset(9, test4Offset, 0); }
startTest4Vector(FlatBufferBuilder builder, int numElems)227   public static void startTest4Vector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 2); }
addTestarrayofstring(FlatBufferBuilder builder, int testarrayofstringOffset)228   public static void addTestarrayofstring(FlatBufferBuilder builder, int testarrayofstringOffset) { builder.addOffset(10, testarrayofstringOffset, 0); }
createTestarrayofstringVector(FlatBufferBuilder builder, int[] data)229   public static int createTestarrayofstringVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
startTestarrayofstringVector(FlatBufferBuilder builder, int numElems)230   public static void startTestarrayofstringVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
addTestarrayoftables(FlatBufferBuilder builder, int testarrayoftablesOffset)231   public static void addTestarrayoftables(FlatBufferBuilder builder, int testarrayoftablesOffset) { builder.addOffset(11, testarrayoftablesOffset, 0); }
createTestarrayoftablesVector(FlatBufferBuilder builder, int[] data)232   public static int createTestarrayoftablesVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
startTestarrayoftablesVector(FlatBufferBuilder builder, int numElems)233   public static void startTestarrayoftablesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
addEnemy(FlatBufferBuilder builder, int enemyOffset)234   public static void addEnemy(FlatBufferBuilder builder, int enemyOffset) { builder.addOffset(12, enemyOffset, 0); }
addTestnestedflatbuffer(FlatBufferBuilder builder, int testnestedflatbufferOffset)235   public static void addTestnestedflatbuffer(FlatBufferBuilder builder, int testnestedflatbufferOffset) { builder.addOffset(13, testnestedflatbufferOffset, 0); }
createTestnestedflatbufferVector(FlatBufferBuilder builder, byte[] data)236   public static int createTestnestedflatbufferVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); }
createTestnestedflatbufferVector(FlatBufferBuilder builder, ByteBuffer data)237   public static int createTestnestedflatbufferVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); }
startTestnestedflatbufferVector(FlatBufferBuilder builder, int numElems)238   public static void startTestnestedflatbufferVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
addTestempty(FlatBufferBuilder builder, int testemptyOffset)239   public static void addTestempty(FlatBufferBuilder builder, int testemptyOffset) { builder.addOffset(14, testemptyOffset, 0); }
addTestbool(FlatBufferBuilder builder, boolean testbool)240   public static void addTestbool(FlatBufferBuilder builder, boolean testbool) { builder.addBoolean(15, testbool, false); }
addTesthashs32Fnv1(FlatBufferBuilder builder, int testhashs32Fnv1)241   public static void addTesthashs32Fnv1(FlatBufferBuilder builder, int testhashs32Fnv1) { builder.addInt(16, testhashs32Fnv1, 0); }
addTesthashu32Fnv1(FlatBufferBuilder builder, long testhashu32Fnv1)242   public static void addTesthashu32Fnv1(FlatBufferBuilder builder, long testhashu32Fnv1) { builder.addInt(17, (int)testhashu32Fnv1, (int)0L); }
addTesthashs64Fnv1(FlatBufferBuilder builder, long testhashs64Fnv1)243   public static void addTesthashs64Fnv1(FlatBufferBuilder builder, long testhashs64Fnv1) { builder.addLong(18, testhashs64Fnv1, 0L); }
addTesthashu64Fnv1(FlatBufferBuilder builder, long testhashu64Fnv1)244   public static void addTesthashu64Fnv1(FlatBufferBuilder builder, long testhashu64Fnv1) { builder.addLong(19, testhashu64Fnv1, 0L); }
addTesthashs32Fnv1a(FlatBufferBuilder builder, int testhashs32Fnv1a)245   public static void addTesthashs32Fnv1a(FlatBufferBuilder builder, int testhashs32Fnv1a) { builder.addInt(20, testhashs32Fnv1a, 0); }
addTesthashu32Fnv1a(FlatBufferBuilder builder, long testhashu32Fnv1a)246   public static void addTesthashu32Fnv1a(FlatBufferBuilder builder, long testhashu32Fnv1a) { builder.addInt(21, (int)testhashu32Fnv1a, (int)0L); }
addTesthashs64Fnv1a(FlatBufferBuilder builder, long testhashs64Fnv1a)247   public static void addTesthashs64Fnv1a(FlatBufferBuilder builder, long testhashs64Fnv1a) { builder.addLong(22, testhashs64Fnv1a, 0L); }
addTesthashu64Fnv1a(FlatBufferBuilder builder, long testhashu64Fnv1a)248   public static void addTesthashu64Fnv1a(FlatBufferBuilder builder, long testhashu64Fnv1a) { builder.addLong(23, testhashu64Fnv1a, 0L); }
addTestarrayofbools(FlatBufferBuilder builder, int testarrayofboolsOffset)249   public static void addTestarrayofbools(FlatBufferBuilder builder, int testarrayofboolsOffset) { builder.addOffset(24, testarrayofboolsOffset, 0); }
createTestarrayofboolsVector(FlatBufferBuilder builder, boolean[] data)250   public static int createTestarrayofboolsVector(FlatBufferBuilder builder, boolean[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addBoolean(data[i]); return builder.endVector(); }
startTestarrayofboolsVector(FlatBufferBuilder builder, int numElems)251   public static void startTestarrayofboolsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
addTestf(FlatBufferBuilder builder, float testf)252   public static void addTestf(FlatBufferBuilder builder, float testf) { builder.addFloat(25, testf, 3.14159f); }
addTestf2(FlatBufferBuilder builder, float testf2)253   public static void addTestf2(FlatBufferBuilder builder, float testf2) { builder.addFloat(26, testf2, 3.0f); }
addTestf3(FlatBufferBuilder builder, float testf3)254   public static void addTestf3(FlatBufferBuilder builder, float testf3) { builder.addFloat(27, testf3, 0.0f); }
addTestarrayofstring2(FlatBufferBuilder builder, int testarrayofstring2Offset)255   public static void addTestarrayofstring2(FlatBufferBuilder builder, int testarrayofstring2Offset) { builder.addOffset(28, testarrayofstring2Offset, 0); }
createTestarrayofstring2Vector(FlatBufferBuilder builder, int[] data)256   public static int createTestarrayofstring2Vector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
startTestarrayofstring2Vector(FlatBufferBuilder builder, int numElems)257   public static void startTestarrayofstring2Vector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
addTestarrayofsortedstruct(FlatBufferBuilder builder, int testarrayofsortedstructOffset)258   public static void addTestarrayofsortedstruct(FlatBufferBuilder builder, int testarrayofsortedstructOffset) { builder.addOffset(29, testarrayofsortedstructOffset, 0); }
startTestarrayofsortedstructVector(FlatBufferBuilder builder, int numElems)259   public static void startTestarrayofsortedstructVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 4); }
addFlex(FlatBufferBuilder builder, int flexOffset)260   public static void addFlex(FlatBufferBuilder builder, int flexOffset) { builder.addOffset(30, flexOffset, 0); }
createFlexVector(FlatBufferBuilder builder, byte[] data)261   public static int createFlexVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); }
createFlexVector(FlatBufferBuilder builder, ByteBuffer data)262   public static int createFlexVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); }
startFlexVector(FlatBufferBuilder builder, int numElems)263   public static void startFlexVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
addTest5(FlatBufferBuilder builder, int test5Offset)264   public static void addTest5(FlatBufferBuilder builder, int test5Offset) { builder.addOffset(31, test5Offset, 0); }
startTest5Vector(FlatBufferBuilder builder, int numElems)265   public static void startTest5Vector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 2); }
addVectorOfLongs(FlatBufferBuilder builder, int vectorOfLongsOffset)266   public static void addVectorOfLongs(FlatBufferBuilder builder, int vectorOfLongsOffset) { builder.addOffset(32, vectorOfLongsOffset, 0); }
createVectorOfLongsVector(FlatBufferBuilder builder, long[] data)267   public static int createVectorOfLongsVector(FlatBufferBuilder builder, long[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addLong(data[i]); return builder.endVector(); }
startVectorOfLongsVector(FlatBufferBuilder builder, int numElems)268   public static void startVectorOfLongsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
addVectorOfDoubles(FlatBufferBuilder builder, int vectorOfDoublesOffset)269   public static void addVectorOfDoubles(FlatBufferBuilder builder, int vectorOfDoublesOffset) { builder.addOffset(33, vectorOfDoublesOffset, 0); }
createVectorOfDoublesVector(FlatBufferBuilder builder, double[] data)270   public static int createVectorOfDoublesVector(FlatBufferBuilder builder, double[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addDouble(data[i]); return builder.endVector(); }
startVectorOfDoublesVector(FlatBufferBuilder builder, int numElems)271   public static void startVectorOfDoublesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
addParentNamespaceTest(FlatBufferBuilder builder, int parentNamespaceTestOffset)272   public static void addParentNamespaceTest(FlatBufferBuilder builder, int parentNamespaceTestOffset) { builder.addOffset(34, parentNamespaceTestOffset, 0); }
addVectorOfReferrables(FlatBufferBuilder builder, int vectorOfReferrablesOffset)273   public static void addVectorOfReferrables(FlatBufferBuilder builder, int vectorOfReferrablesOffset) { builder.addOffset(35, vectorOfReferrablesOffset, 0); }
createVectorOfReferrablesVector(FlatBufferBuilder builder, int[] data)274   public static int createVectorOfReferrablesVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
startVectorOfReferrablesVector(FlatBufferBuilder builder, int numElems)275   public static void startVectorOfReferrablesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
addSingleWeakReference(FlatBufferBuilder builder, long singleWeakReference)276   public static void addSingleWeakReference(FlatBufferBuilder builder, long singleWeakReference) { builder.addLong(36, singleWeakReference, 0L); }
addVectorOfWeakReferences(FlatBufferBuilder builder, int vectorOfWeakReferencesOffset)277   public static void addVectorOfWeakReferences(FlatBufferBuilder builder, int vectorOfWeakReferencesOffset) { builder.addOffset(37, vectorOfWeakReferencesOffset, 0); }
createVectorOfWeakReferencesVector(FlatBufferBuilder builder, long[] data)278   public static int createVectorOfWeakReferencesVector(FlatBufferBuilder builder, long[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addLong(data[i]); return builder.endVector(); }
startVectorOfWeakReferencesVector(FlatBufferBuilder builder, int numElems)279   public static void startVectorOfWeakReferencesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
addVectorOfStrongReferrables(FlatBufferBuilder builder, int vectorOfStrongReferrablesOffset)280   public static void addVectorOfStrongReferrables(FlatBufferBuilder builder, int vectorOfStrongReferrablesOffset) { builder.addOffset(38, vectorOfStrongReferrablesOffset, 0); }
createVectorOfStrongReferrablesVector(FlatBufferBuilder builder, int[] data)281   public static int createVectorOfStrongReferrablesVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
startVectorOfStrongReferrablesVector(FlatBufferBuilder builder, int numElems)282   public static void startVectorOfStrongReferrablesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
addCoOwningReference(FlatBufferBuilder builder, long coOwningReference)283   public static void addCoOwningReference(FlatBufferBuilder builder, long coOwningReference) { builder.addLong(39, coOwningReference, 0L); }
addVectorOfCoOwningReferences(FlatBufferBuilder builder, int vectorOfCoOwningReferencesOffset)284   public static void addVectorOfCoOwningReferences(FlatBufferBuilder builder, int vectorOfCoOwningReferencesOffset) { builder.addOffset(40, vectorOfCoOwningReferencesOffset, 0); }
createVectorOfCoOwningReferencesVector(FlatBufferBuilder builder, long[] data)285   public static int createVectorOfCoOwningReferencesVector(FlatBufferBuilder builder, long[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addLong(data[i]); return builder.endVector(); }
startVectorOfCoOwningReferencesVector(FlatBufferBuilder builder, int numElems)286   public static void startVectorOfCoOwningReferencesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
addNonOwningReference(FlatBufferBuilder builder, long nonOwningReference)287   public static void addNonOwningReference(FlatBufferBuilder builder, long nonOwningReference) { builder.addLong(41, nonOwningReference, 0L); }
addVectorOfNonOwningReferences(FlatBufferBuilder builder, int vectorOfNonOwningReferencesOffset)288   public static void addVectorOfNonOwningReferences(FlatBufferBuilder builder, int vectorOfNonOwningReferencesOffset) { builder.addOffset(42, vectorOfNonOwningReferencesOffset, 0); }
createVectorOfNonOwningReferencesVector(FlatBufferBuilder builder, long[] data)289   public static int createVectorOfNonOwningReferencesVector(FlatBufferBuilder builder, long[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addLong(data[i]); return builder.endVector(); }
startVectorOfNonOwningReferencesVector(FlatBufferBuilder builder, int numElems)290   public static void startVectorOfNonOwningReferencesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
addAnyUniqueType(FlatBufferBuilder builder, byte anyUniqueType)291   public static void addAnyUniqueType(FlatBufferBuilder builder, byte anyUniqueType) { builder.addByte(43, anyUniqueType, 0); }
addAnyUnique(FlatBufferBuilder builder, int anyUniqueOffset)292   public static void addAnyUnique(FlatBufferBuilder builder, int anyUniqueOffset) { builder.addOffset(44, anyUniqueOffset, 0); }
addAnyAmbiguousType(FlatBufferBuilder builder, byte anyAmbiguousType)293   public static void addAnyAmbiguousType(FlatBufferBuilder builder, byte anyAmbiguousType) { builder.addByte(45, anyAmbiguousType, 0); }
addAnyAmbiguous(FlatBufferBuilder builder, int anyAmbiguousOffset)294   public static void addAnyAmbiguous(FlatBufferBuilder builder, int anyAmbiguousOffset) { builder.addOffset(46, anyAmbiguousOffset, 0); }
addVectorOfEnums(FlatBufferBuilder builder, int vectorOfEnumsOffset)295   public static void addVectorOfEnums(FlatBufferBuilder builder, int vectorOfEnumsOffset) { builder.addOffset(47, vectorOfEnumsOffset, 0); }
createVectorOfEnumsVector(FlatBufferBuilder builder, byte[] data)296   public static int createVectorOfEnumsVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); }
createVectorOfEnumsVector(FlatBufferBuilder builder, ByteBuffer data)297   public static int createVectorOfEnumsVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); }
startVectorOfEnumsVector(FlatBufferBuilder builder, int numElems)298   public static void startVectorOfEnumsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
addSignedEnum(FlatBufferBuilder builder, byte signedEnum)299   public static void addSignedEnum(FlatBufferBuilder builder, byte signedEnum) { builder.addByte(48, signedEnum, -1); }
addTestrequirednestedflatbuffer(FlatBufferBuilder builder, int testrequirednestedflatbufferOffset)300   public static void addTestrequirednestedflatbuffer(FlatBufferBuilder builder, int testrequirednestedflatbufferOffset) { builder.addOffset(49, testrequirednestedflatbufferOffset, 0); }
createTestrequirednestedflatbufferVector(FlatBufferBuilder builder, byte[] data)301   public static int createTestrequirednestedflatbufferVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); }
createTestrequirednestedflatbufferVector(FlatBufferBuilder builder, ByteBuffer data)302   public static int createTestrequirednestedflatbufferVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); }
startTestrequirednestedflatbufferVector(FlatBufferBuilder builder, int numElems)303   public static void startTestrequirednestedflatbufferVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
addScalarKeySortedTables(FlatBufferBuilder builder, int scalarKeySortedTablesOffset)304   public static void addScalarKeySortedTables(FlatBufferBuilder builder, int scalarKeySortedTablesOffset) { builder.addOffset(50, scalarKeySortedTablesOffset, 0); }
createScalarKeySortedTablesVector(FlatBufferBuilder builder, int[] data)305   public static int createScalarKeySortedTablesVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
startScalarKeySortedTablesVector(FlatBufferBuilder builder, int numElems)306   public static void startScalarKeySortedTablesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
endMonster(FlatBufferBuilder builder)307   public static int endMonster(FlatBufferBuilder builder) {
308     int o = builder.endTable();
309     builder.required(o, 10);  // name
310     return o;
311   }
finishMonsterBuffer(FlatBufferBuilder builder, int offset)312   public static void finishMonsterBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset, "MONS"); }
finishSizePrefixedMonsterBuffer(FlatBufferBuilder builder, int offset)313   public static void finishSizePrefixedMonsterBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(offset, "MONS"); }
314 
315   @Override
keysCompare(Integer o1, Integer o2, ByteBuffer _bb)316   protected int keysCompare(Integer o1, Integer o2, ByteBuffer _bb) { return compareStrings(__offset(10, o1, _bb), __offset(10, o2, _bb), _bb); }
317 
__lookup_by_key(Monster obj, int vectorLocation, String key, ByteBuffer bb)318   public static Monster __lookup_by_key(Monster obj, int vectorLocation, String key, ByteBuffer bb) {
319     byte[] byteKey = key.getBytes(java.nio.charset.StandardCharsets.UTF_8);
320     int span = bb.getInt(vectorLocation - 4);
321     int start = 0;
322     while (span != 0) {
323       int middle = span / 2;
324       int tableOffset = __indirect(vectorLocation + 4 * (start + middle), bb);
325       int comp = compareStrings(__offset(10, bb.capacity() - tableOffset, bb), byteKey, bb);
326       if (comp > 0) {
327         span = middle;
328       } else if (comp < 0) {
329         middle++;
330         start += middle;
331         span -= middle;
332       } else {
333         return (obj == null ? new Monster() : obj).__assign(tableOffset, bb);
334       }
335     }
336     return null;
337   }
338 
339   public static final class Vector extends BaseVector {
__assign(int _vector, int _element_size, ByteBuffer _bb)340     public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
341 
get(int j)342     public Monster get(int j) { return get(new Monster(), j); }
get(Monster obj, int j)343     public Monster get(Monster obj, int j) {  return obj.__assign(__indirect(__element(j), bb), bb); }
getByKey(String key)344     public Monster getByKey(String key) {  return __lookup_by_key(null, __vector(), key, bb); }
getByKey(Monster obj, String key)345     public Monster getByKey(Monster obj, String key) {  return __lookup_by_key(obj, __vector(), key, bb); }
346   }
347 }
348 
349