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 SecondTableInA extends Table { getRootAsSecondTableInA(ByteBuffer _bb)12 public static SecondTableInA getRootAsSecondTableInA(ByteBuffer _bb) { return getRootAsSecondTableInA(_bb, new SecondTableInA()); } getRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj)13 public static SecondTableInA getRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } __init(int _i, ByteBuffer _bb)14 public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } __assign(int _i, ByteBuffer _bb)15 public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 16 referToC()17 public NamespaceC.TableInC referToC() { return referToC(new NamespaceC.TableInC()); } referToC(NamespaceC.TableInC obj)18 public NamespaceC.TableInC referToC(NamespaceC.TableInC obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } 19 createSecondTableInA(FlatBufferBuilder builder, int refer_to_cOffset)20 public static int createSecondTableInA(FlatBufferBuilder builder, 21 int refer_to_cOffset) { 22 builder.startObject(1); 23 SecondTableInA.addReferToC(builder, refer_to_cOffset); 24 return SecondTableInA.endSecondTableInA(builder); 25 } 26 startSecondTableInA(FlatBufferBuilder builder)27 public static void startSecondTableInA(FlatBufferBuilder builder) { builder.startObject(1); } addReferToC(FlatBufferBuilder builder, int referToCOffset)28 public static void addReferToC(FlatBufferBuilder builder, int referToCOffset) { builder.addOffset(0, referToCOffset, 0); } endSecondTableInA(FlatBufferBuilder builder)29 public static int endSecondTableInA(FlatBufferBuilder builder) { 30 int o = builder.endObject(); 31 return o; 32 } 33 } 34 35