• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package NamespaceA.NamespaceB;
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 TableInNestedNS extends Table {
getRootAsTableInNestedNS(ByteBuffer _bb)12   public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb) { return getRootAsTableInNestedNS(_bb, new TableInNestedNS()); }
getRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj)13   public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS 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 TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
16 
foo()17   public int foo() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; }
mutateFoo(int foo)18   public boolean mutateFoo(int foo) { int o = __offset(4); if (o != 0) { bb.putInt(o + bb_pos, foo); return true; } else { return false; } }
19 
createTableInNestedNS(FlatBufferBuilder builder, int foo)20   public static int createTableInNestedNS(FlatBufferBuilder builder,
21       int foo) {
22     builder.startObject(1);
23     TableInNestedNS.addFoo(builder, foo);
24     return TableInNestedNS.endTableInNestedNS(builder);
25   }
26 
startTableInNestedNS(FlatBufferBuilder builder)27   public static void startTableInNestedNS(FlatBufferBuilder builder) { builder.startObject(1); }
addFoo(FlatBufferBuilder builder, int foo)28   public static void addFoo(FlatBufferBuilder builder, int foo) { builder.addInt(0, foo, 0); }
endTableInNestedNS(FlatBufferBuilder builder)29   public static int endTableInNestedNS(FlatBufferBuilder builder) {
30     int o = builder.endObject();
31     return o;
32   }
33 }
34 
35