1 // <auto-generated> 2 // automatically generated by the FlatBuffers compiler, do not modify 3 // </auto-generated> 4 5 namespace NamespaceA 6 { 7 8 using global::System; 9 using global::System.Collections.Generic; 10 using global::FlatBuffers; 11 12 public struct SecondTableInA : IFlatbufferObject 13 { 14 private Table __p; 15 public ByteBuffer ByteBuffer { get { return __p.bb; } } ValidateVersionNamespaceA.SecondTableInA16 public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_2_0_0(); } GetRootAsSecondTableInANamespaceA.SecondTableInA17 public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb) { return GetRootAsSecondTableInA(_bb, new SecondTableInA()); } GetRootAsSecondTableInANamespaceA.SecondTableInA18 public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } __initNamespaceA.SecondTableInA19 public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } __assignNamespaceA.SecondTableInA20 public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 21 22 public NamespaceC.TableInC? ReferToC { get { int o = __p.__offset(4); return o != 0 ? (NamespaceC.TableInC?)(new NamespaceC.TableInC()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } 23 CreateSecondTableInANamespaceA.SecondTableInA24 public static Offset<NamespaceA.SecondTableInA> CreateSecondTableInA(FlatBufferBuilder builder, 25 Offset<NamespaceC.TableInC> refer_to_cOffset = default(Offset<NamespaceC.TableInC>)) { 26 builder.StartTable(1); 27 SecondTableInA.AddReferToC(builder, refer_to_cOffset); 28 return SecondTableInA.EndSecondTableInA(builder); 29 } 30 StartSecondTableInANamespaceA.SecondTableInA31 public static void StartSecondTableInA(FlatBufferBuilder builder) { builder.StartTable(1); } AddReferToCNamespaceA.SecondTableInA32 public static void AddReferToC(FlatBufferBuilder builder, Offset<NamespaceC.TableInC> referToCOffset) { builder.AddOffset(0, referToCOffset.Value, 0); } EndSecondTableInANamespaceA.SecondTableInA33 public static Offset<NamespaceA.SecondTableInA> EndSecondTableInA(FlatBufferBuilder builder) { 34 int o = builder.EndTable(); 35 return new Offset<NamespaceA.SecondTableInA>(o); 36 } UnPackNamespaceA.SecondTableInA37 public SecondTableInAT UnPack() { 38 var _o = new SecondTableInAT(); 39 this.UnPackTo(_o); 40 return _o; 41 } UnPackToNamespaceA.SecondTableInA42 public void UnPackTo(SecondTableInAT _o) { 43 _o.ReferToC = this.ReferToC.HasValue ? this.ReferToC.Value.UnPack() : null; 44 } PackNamespaceA.SecondTableInA45 public static Offset<NamespaceA.SecondTableInA> Pack(FlatBufferBuilder builder, SecondTableInAT _o) { 46 if (_o == null) return default(Offset<NamespaceA.SecondTableInA>); 47 var _refer_to_c = _o.ReferToC == null ? default(Offset<NamespaceC.TableInC>) : NamespaceC.TableInC.Pack(builder, _o.ReferToC); 48 return CreateSecondTableInA( 49 builder, 50 _refer_to_c); 51 } 52 }; 53 54 public class SecondTableInAT 55 { 56 [Newtonsoft.Json.JsonProperty("refer_to_c")] 57 public NamespaceC.TableInCT ReferToC { get; set; } 58 SecondTableInAT()59 public SecondTableInAT() { 60 this.ReferToC = null; 61 } 62 } 63 64 65 } 66