• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 {
ValidateVersion()12   public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); }
getRootAsSecondTableInA(ByteBuffer _bb)13   public static SecondTableInA getRootAsSecondTableInA(ByteBuffer _bb) { return getRootAsSecondTableInA(_bb, new SecondTableInA()); }
getRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj)14   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)15   public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
__assign(int _i, ByteBuffer _bb)16   public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
17 
referToC()18   public NamespaceC.TableInC referToC() { return referToC(new NamespaceC.TableInC()); }
referToC(NamespaceC.TableInC obj)19   public NamespaceC.TableInC referToC(NamespaceC.TableInC obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; }
20 
createSecondTableInA(FlatBufferBuilder builder, int refer_to_cOffset)21   public static int createSecondTableInA(FlatBufferBuilder builder,
22       int refer_to_cOffset) {
23     builder.startTable(1);
24     SecondTableInA.addReferToC(builder, refer_to_cOffset);
25     return SecondTableInA.endSecondTableInA(builder);
26   }
27 
startSecondTableInA(FlatBufferBuilder builder)28   public static void startSecondTableInA(FlatBufferBuilder builder) { builder.startTable(1); }
addReferToC(FlatBufferBuilder builder, int referToCOffset)29   public static void addReferToC(FlatBufferBuilder builder, int referToCOffset) { builder.addOffset(0, referToCOffset, 0); }
endSecondTableInA(FlatBufferBuilder builder)30   public static int endSecondTableInA(FlatBufferBuilder builder) {
31     int o = builder.endTable();
32     return o;
33   }
34 
35   public static final class Vector extends BaseVector {
__assign(int _vector, int _element_size, ByteBuffer _bb)36     public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
37 
get(int j)38     public SecondTableInA get(int j) { return get(new SecondTableInA(), j); }
get(SecondTableInA obj, int j)39     public SecondTableInA get(SecondTableInA obj, int j) {  return obj.__assign(__indirect(__element(j), bb), bb); }
40   }
41 }
42 
43