blob: 211d1c4985d0f1968d5bceed73543d56bd2ebaee [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3package NamespaceA.NamespaceB;
4
5import java.nio.*;
6import java.lang.*;
7import java.util.*;
8import com.google.flatbuffers.*;
9
10@SuppressWarnings("unused")
11public final class TableInNestedNS extends Table {
James Kuszmaul3b15b0c2022-11-08 14:03:16 -080012 public static void ValidateVersion() { Constants.FLATBUFFERS_22_10_26(); }
Austin Schuhe89fa2d2019-08-14 20:24:23 -070013 public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb) { return getRootAsTableInNestedNS(_bb, new TableInNestedNS()); }
14 public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
15 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
16 public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
17
18 public int foo() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; }
19 public boolean mutateFoo(int foo) { int o = __offset(4); if (o != 0) { bb.putInt(o + bb_pos, foo); return true; } else { return false; } }
20
21 public static int createTableInNestedNS(FlatBufferBuilder builder,
22 int foo) {
23 builder.startTable(1);
24 TableInNestedNS.addFoo(builder, foo);
25 return TableInNestedNS.endTableInNestedNS(builder);
26 }
27
28 public static void startTableInNestedNS(FlatBufferBuilder builder) { builder.startTable(1); }
29 public static void addFoo(FlatBufferBuilder builder, int foo) { builder.addInt(0, foo, 0); }
30 public static int endTableInNestedNS(FlatBufferBuilder builder) {
31 int o = builder.endTable();
32 return o;
33 }
Austin Schuh272c6132020-11-14 16:37:52 -080034
35 public static final class Vector extends BaseVector {
36 public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
37
38 public TableInNestedNS get(int j) { return get(new TableInNestedNS(), j); }
39 public TableInNestedNS get(TableInNestedNS obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
40 }
James Kuszmaul8e62b022022-03-22 09:33:25 -070041 public TableInNestedNST unpack() {
42 TableInNestedNST _o = new TableInNestedNST();
43 unpackTo(_o);
44 return _o;
45 }
46 public void unpackTo(TableInNestedNST _o) {
47 int _oFoo = foo();
48 _o.setFoo(_oFoo);
49 }
50 public static int pack(FlatBufferBuilder builder, TableInNestedNST _o) {
51 if (_o == null) return 0;
52 return createTableInNestedNS(
53 builder,
54 _o.getFoo());
55 }
Austin Schuhe89fa2d2019-08-14 20:24:23 -070056}
57