• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package NamespaceC;
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 TableInC extends Table {
ValidateVersion()12   public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); }
getRootAsTableInC(ByteBuffer _bb)13   public static TableInC getRootAsTableInC(ByteBuffer _bb) { return getRootAsTableInC(_bb, new TableInC()); }
getRootAsTableInC(ByteBuffer _bb, TableInC obj)14   public static TableInC getRootAsTableInC(ByteBuffer _bb, TableInC 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 TableInC __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
17 
referToA1()18   public NamespaceA.TableInFirstNS referToA1() { return referToA1(new NamespaceA.TableInFirstNS()); }
referToA1(NamespaceA.TableInFirstNS obj)19   public NamespaceA.TableInFirstNS referToA1(NamespaceA.TableInFirstNS obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; }
referToA2()20   public NamespaceA.SecondTableInA referToA2() { return referToA2(new NamespaceA.SecondTableInA()); }
referToA2(NamespaceA.SecondTableInA obj)21   public NamespaceA.SecondTableInA referToA2(NamespaceA.SecondTableInA obj) { int o = __offset(6); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; }
22 
createTableInC(FlatBufferBuilder builder, int refer_to_a1Offset, int refer_to_a2Offset)23   public static int createTableInC(FlatBufferBuilder builder,
24       int refer_to_a1Offset,
25       int refer_to_a2Offset) {
26     builder.startTable(2);
27     TableInC.addReferToA2(builder, refer_to_a2Offset);
28     TableInC.addReferToA1(builder, refer_to_a1Offset);
29     return TableInC.endTableInC(builder);
30   }
31 
startTableInC(FlatBufferBuilder builder)32   public static void startTableInC(FlatBufferBuilder builder) { builder.startTable(2); }
addReferToA1(FlatBufferBuilder builder, int referToA1Offset)33   public static void addReferToA1(FlatBufferBuilder builder, int referToA1Offset) { builder.addOffset(0, referToA1Offset, 0); }
addReferToA2(FlatBufferBuilder builder, int referToA2Offset)34   public static void addReferToA2(FlatBufferBuilder builder, int referToA2Offset) { builder.addOffset(1, referToA2Offset, 0); }
endTableInC(FlatBufferBuilder builder)35   public static int endTableInC(FlatBufferBuilder builder) {
36     int o = builder.endTable();
37     return o;
38   }
39 
40   public static final class Vector extends BaseVector {
__assign(int _vector, int _element_size, ByteBuffer _bb)41     public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
42 
get(int j)43     public TableInC get(int j) { return get(new TableInC(), j); }
get(TableInC obj, int j)44     public TableInC get(TableInC obj, int j) {  return obj.__assign(__indirect(__element(j), bb), bb); }
45   }
46 }
47 
48