1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 namespace NamespaceA 4 { 5 6 using System; 7 using FlatBuffers; 8 9 public sealed class TableInC : Table { GetRootAsTableInC(ByteBuffer _bb)10 public static TableInC GetRootAsTableInC(ByteBuffer _bb) { return GetRootAsTableInC(_bb, new TableInC()); } GetRootAsTableInC(ByteBuffer _bb, TableInC obj)11 public static TableInC GetRootAsTableInC(ByteBuffer _bb, TableInC obj) { return (obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } __init(int _i, ByteBuffer _bb)12 public TableInC __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; } 13 14 public NamespaceA.TableInFirstNS ReferToA1 { get { return GetReferToA1(new NamespaceA.TableInFirstNS()); } } GetReferToA1(NamespaceA.TableInFirstNS obj)15 public NamespaceA.TableInFirstNS GetReferToA1(NamespaceA.TableInFirstNS obj) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; } 16 public SecondTableInA ReferToA2 { get { return GetReferToA2(new SecondTableInA()); } } GetReferToA2(SecondTableInA obj)17 public SecondTableInA GetReferToA2(SecondTableInA obj) { int o = __offset(6); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; } 18 CreateTableInC(FlatBufferBuilder builder, Offset<NamespaceA.TableInFirstNS> refer_to_a1Offset = default(Offset<NamespaceA.TableInFirstNS>), Offset<SecondTableInA> refer_to_a2Offset = default(Offset<SecondTableInA>))19 public static Offset<NamespaceC.TableInC> CreateTableInC(FlatBufferBuilder builder, 20 Offset<NamespaceA.TableInFirstNS> refer_to_a1Offset = default(Offset<NamespaceA.TableInFirstNS>), 21 Offset<SecondTableInA> refer_to_a2Offset = default(Offset<SecondTableInA>)) { 22 builder.StartObject(2); 23 TableInC.AddReferToA2(builder, refer_to_a2Offset); 24 TableInC.AddReferToA1(builder, refer_to_a1Offset); 25 return TableInC.EndTableInC(builder); 26 } 27 StartTableInC(FlatBufferBuilder builder)28 public static void StartTableInC(FlatBufferBuilder builder) { builder.StartObject(2); } AddReferToA1(FlatBufferBuilder builder, Offset<NamespaceA.TableInFirstNS> referToA1Offset)29 public static void AddReferToA1(FlatBufferBuilder builder, Offset<NamespaceA.TableInFirstNS> referToA1Offset) { builder.AddOffset(0, referToA1Offset.Value, 0); } AddReferToA2(FlatBufferBuilder builder, Offset<SecondTableInA> referToA2Offset)30 public static void AddReferToA2(FlatBufferBuilder builder, Offset<SecondTableInA> referToA2Offset) { builder.AddOffset(1, referToA2Offset.Value, 0); } EndTableInC(FlatBufferBuilder builder)31 public static Offset<NamespaceC.TableInC> EndTableInC(FlatBufferBuilder builder) { 32 int o = builder.EndObject(); 33 return new Offset<NamespaceC.TableInC>(o); 34 } 35 }; 36 37 38 } 39