Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame^] | 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 { |
| 12 | public static void ValidateVersion() { Constants.FLATBUFFERS_1_11_1(); } |
| 13 | public static TableInC getRootAsTableInC(ByteBuffer _bb) { return getRootAsTableInC(_bb, new TableInC()); } |
| 14 | public static TableInC getRootAsTableInC(ByteBuffer _bb, TableInC 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 TableInC __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } |
| 17 | |
| 18 | public NamespaceA.TableInFirstNS referToA1() { return referToA1(new NamespaceA.TableInFirstNS()); } |
| 19 | public NamespaceA.TableInFirstNS referToA1(NamespaceA.TableInFirstNS obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } |
| 20 | public NamespaceA.SecondTableInA referToA2() { return referToA2(new NamespaceA.SecondTableInA()); } |
| 21 | public NamespaceA.SecondTableInA referToA2(NamespaceA.SecondTableInA obj) { int o = __offset(6); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } |
| 22 | |
| 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 | |
| 32 | public static void startTableInC(FlatBufferBuilder builder) { builder.startTable(2); } |
| 33 | public static void addReferToA1(FlatBufferBuilder builder, int referToA1Offset) { builder.addOffset(0, referToA1Offset, 0); } |
| 34 | public static void addReferToA2(FlatBufferBuilder builder, int referToA2Offset) { builder.addOffset(1, referToA2Offset, 0); } |
| 35 | public static int endTableInC(FlatBufferBuilder builder) { |
| 36 | int o = builder.endTable(); |
| 37 | return o; |
| 38 | } |
| 39 | } |
| 40 | |