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 @SuppressWarnings("unused") 11 public final class ArrayTable extends Table { ValidateVersion()12 public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } getRootAsArrayTable(ByteBuffer _bb)13 public static ArrayTable getRootAsArrayTable(ByteBuffer _bb) { return getRootAsArrayTable(_bb, new ArrayTable()); } getRootAsArrayTable(ByteBuffer _bb, ArrayTable obj)14 public static ArrayTable getRootAsArrayTable(ByteBuffer _bb, ArrayTable obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } ArrayTableBufferHasIdentifier(ByteBuffer _bb)15 public static boolean ArrayTableBufferHasIdentifier(ByteBuffer _bb) { return __has_identifier(_bb, "ARRT"); } __init(int _i, ByteBuffer _bb)16 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } __assign(int _i, ByteBuffer _bb)17 public ArrayTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 18 a()19 public MyGame.Example.ArrayStruct a() { return a(new MyGame.Example.ArrayStruct()); } a(MyGame.Example.ArrayStruct obj)20 public MyGame.Example.ArrayStruct a(MyGame.Example.ArrayStruct obj) { int o = __offset(4); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; } 21 startArrayTable(FlatBufferBuilder builder)22 public static void startArrayTable(FlatBufferBuilder builder) { builder.startTable(1); } addA(FlatBufferBuilder builder, int aOffset)23 public static void addA(FlatBufferBuilder builder, int aOffset) { builder.addStruct(0, aOffset, 0); } endArrayTable(FlatBufferBuilder builder)24 public static int endArrayTable(FlatBufferBuilder builder) { 25 int o = builder.endTable(); 26 return o; 27 } finishArrayTableBuffer(FlatBufferBuilder builder, int offset)28 public static void finishArrayTableBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset, "ARRT"); } finishSizePrefixedArrayTableBuffer(FlatBufferBuilder builder, int offset)29 public static void finishSizePrefixedArrayTableBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(offset, "ARRT"); } 30 31 public static final class Vector extends BaseVector { __assign(int _vector, int _element_size, ByteBuffer _bb)32 public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } 33 get(int j)34 public ArrayTable get(int j) { return get(new ArrayTable(), j); } get(ArrayTable obj, int j)35 public ArrayTable get(ArrayTable obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } 36 } 37 } 38 39