• 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 TableInFirstNS extends Table {
getRootAsTableInFirstNS(ByteBuffer _bb)12   public static TableInFirstNS getRootAsTableInFirstNS(ByteBuffer _bb) { return getRootAsTableInFirstNS(_bb, new TableInFirstNS()); }
getRootAsTableInFirstNS(ByteBuffer _bb, TableInFirstNS obj)13   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)14   public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
__assign(int _i, ByteBuffer _bb)15   public TableInFirstNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
16 
fooTable()17   public NamespaceA.NamespaceB.TableInNestedNS fooTable() { return fooTable(new NamespaceA.NamespaceB.TableInNestedNS()); }
fooTable(NamespaceA.NamespaceB.TableInNestedNS obj)18   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()19   public byte fooEnum() { int o = __offset(6); return o != 0 ? bb.get(o + bb_pos) : 0; }
mutateFooEnum(byte foo_enum)20   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()21   public NamespaceA.NamespaceB.StructInNestedNS fooStruct() { return fooStruct(new NamespaceA.NamespaceB.StructInNestedNS()); }
fooStruct(NamespaceA.NamespaceB.StructInNestedNS obj)22   public NamespaceA.NamespaceB.StructInNestedNS fooStruct(NamespaceA.NamespaceB.StructInNestedNS obj) { int o = __offset(8); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; }
23 
startTableInFirstNS(FlatBufferBuilder builder)24   public static void startTableInFirstNS(FlatBufferBuilder builder) { builder.startObject(3); }
addFooTable(FlatBufferBuilder builder, int fooTableOffset)25   public static void addFooTable(FlatBufferBuilder builder, int fooTableOffset) { builder.addOffset(0, fooTableOffset, 0); }
addFooEnum(FlatBufferBuilder builder, byte fooEnum)26   public static void addFooEnum(FlatBufferBuilder builder, byte fooEnum) { builder.addByte(1, fooEnum, 0); }
addFooStruct(FlatBufferBuilder builder, int fooStructOffset)27   public static void addFooStruct(FlatBufferBuilder builder, int fooStructOffset) { builder.addStruct(2, fooStructOffset, 0); }
endTableInFirstNS(FlatBufferBuilder builder)28   public static int endTableInFirstNS(FlatBufferBuilder builder) {
29     int o = builder.endObject();
30     return o;
31   }
32 }
33 
34