1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package NamespaceA; 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 TableInFirstNS extends Table { ValidateVersion()12 public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } getRootAsTableInFirstNS(ByteBuffer _bb)13 public static TableInFirstNS getRootAsTableInFirstNS(ByteBuffer _bb) { return getRootAsTableInFirstNS(_bb, new TableInFirstNS()); } getRootAsTableInFirstNS(ByteBuffer _bb, TableInFirstNS obj)14 public static TableInFirstNS getRootAsTableInFirstNS(ByteBuffer _bb, TableInFirstNS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } __init(int _i, ByteBuffer _bb)15 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } __assign(int _i, ByteBuffer _bb)16 public TableInFirstNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 17 fooTable()18 public NamespaceA.NamespaceB.TableInNestedNS fooTable() { return fooTable(new NamespaceA.NamespaceB.TableInNestedNS()); } fooTable(NamespaceA.NamespaceB.TableInNestedNS obj)19 public NamespaceA.NamespaceB.TableInNestedNS fooTable(NamespaceA.NamespaceB.TableInNestedNS obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } fooEnum()20 public byte fooEnum() { int o = __offset(6); return o != 0 ? bb.get(o + bb_pos) : 0; } mutateFooEnum(byte foo_enum)21 public boolean mutateFooEnum(byte foo_enum) { int o = __offset(6); if (o != 0) { bb.put(o + bb_pos, foo_enum); return true; } else { return false; } } fooStruct()22 public NamespaceA.NamespaceB.StructInNestedNS fooStruct() { return fooStruct(new NamespaceA.NamespaceB.StructInNestedNS()); } fooStruct(NamespaceA.NamespaceB.StructInNestedNS obj)23 public NamespaceA.NamespaceB.StructInNestedNS fooStruct(NamespaceA.NamespaceB.StructInNestedNS obj) { int o = __offset(8); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; } 24 startTableInFirstNS(FlatBufferBuilder builder)25 public static void startTableInFirstNS(FlatBufferBuilder builder) { builder.startTable(3); } addFooTable(FlatBufferBuilder builder, int fooTableOffset)26 public static void addFooTable(FlatBufferBuilder builder, int fooTableOffset) { builder.addOffset(0, fooTableOffset, 0); } addFooEnum(FlatBufferBuilder builder, byte fooEnum)27 public static void addFooEnum(FlatBufferBuilder builder, byte fooEnum) { builder.addByte(1, fooEnum, 0); } addFooStruct(FlatBufferBuilder builder, int fooStructOffset)28 public static void addFooStruct(FlatBufferBuilder builder, int fooStructOffset) { builder.addStruct(2, fooStructOffset, 0); } endTableInFirstNS(FlatBufferBuilder builder)29 public static int endTableInFirstNS(FlatBufferBuilder builder) { 30 int o = builder.endTable(); 31 return o; 32 } 33 34 public static final class Vector extends BaseVector { __assign(int _vector, int _element_size, ByteBuffer _bb)35 public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } 36 get(int j)37 public TableInFirstNS get(int j) { return get(new TableInFirstNS(), j); } get(TableInFirstNS obj, int j)38 public TableInFirstNS get(TableInFirstNS obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } 39 } 40 } 41 42