• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //  automatically generated by the FlatBuffers compiler, do not modify
3 // </auto-generated>
4 
5 namespace NamespaceC
6 {
7 
8 using global::System;
9 using global::System.Collections.Generic;
10 using global::FlatBuffers;
11 
12 public struct TableInC : IFlatbufferObject
13 {
14   private Table __p;
15   public ByteBuffer ByteBuffer { get { return __p.bb; } }
ValidateVersionNamespaceC.TableInC16   public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_2_0_0(); }
GetRootAsTableInCNamespaceC.TableInC17   public static TableInC GetRootAsTableInC(ByteBuffer _bb) { return GetRootAsTableInC(_bb, new TableInC()); }
GetRootAsTableInCNamespaceC.TableInC18   public static TableInC GetRootAsTableInC(ByteBuffer _bb, TableInC obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
__initNamespaceC.TableInC19   public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
__assignNamespaceC.TableInC20   public TableInC __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
21 
22   public NamespaceA.TableInFirstNS? ReferToA1 { get { int o = __p.__offset(4); return o != 0 ? (NamespaceA.TableInFirstNS?)(new NamespaceA.TableInFirstNS()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
23   public NamespaceA.SecondTableInA? ReferToA2 { get { int o = __p.__offset(6); return o != 0 ? (NamespaceA.SecondTableInA?)(new NamespaceA.SecondTableInA()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
24 
CreateTableInCNamespaceC.TableInC25   public static Offset<NamespaceC.TableInC> CreateTableInC(FlatBufferBuilder builder,
26       Offset<NamespaceA.TableInFirstNS> refer_to_a1Offset = default(Offset<NamespaceA.TableInFirstNS>),
27       Offset<NamespaceA.SecondTableInA> refer_to_a2Offset = default(Offset<NamespaceA.SecondTableInA>)) {
28     builder.StartTable(2);
29     TableInC.AddReferToA2(builder, refer_to_a2Offset);
30     TableInC.AddReferToA1(builder, refer_to_a1Offset);
31     return TableInC.EndTableInC(builder);
32   }
33 
StartTableInCNamespaceC.TableInC34   public static void StartTableInC(FlatBufferBuilder builder) { builder.StartTable(2); }
AddReferToA1NamespaceC.TableInC35   public static void AddReferToA1(FlatBufferBuilder builder, Offset<NamespaceA.TableInFirstNS> referToA1Offset) { builder.AddOffset(0, referToA1Offset.Value, 0); }
AddReferToA2NamespaceC.TableInC36   public static void AddReferToA2(FlatBufferBuilder builder, Offset<NamespaceA.SecondTableInA> referToA2Offset) { builder.AddOffset(1, referToA2Offset.Value, 0); }
EndTableInCNamespaceC.TableInC37   public static Offset<NamespaceC.TableInC> EndTableInC(FlatBufferBuilder builder) {
38     int o = builder.EndTable();
39     return new Offset<NamespaceC.TableInC>(o);
40   }
UnPackNamespaceC.TableInC41   public TableInCT UnPack() {
42     var _o = new TableInCT();
43     this.UnPackTo(_o);
44     return _o;
45   }
UnPackToNamespaceC.TableInC46   public void UnPackTo(TableInCT _o) {
47     _o.ReferToA1 = this.ReferToA1.HasValue ? this.ReferToA1.Value.UnPack() : null;
48     _o.ReferToA2 = this.ReferToA2.HasValue ? this.ReferToA2.Value.UnPack() : null;
49   }
PackNamespaceC.TableInC50   public static Offset<NamespaceC.TableInC> Pack(FlatBufferBuilder builder, TableInCT _o) {
51     if (_o == null) return default(Offset<NamespaceC.TableInC>);
52     var _refer_to_a1 = _o.ReferToA1 == null ? default(Offset<NamespaceA.TableInFirstNS>) : NamespaceA.TableInFirstNS.Pack(builder, _o.ReferToA1);
53     var _refer_to_a2 = _o.ReferToA2 == null ? default(Offset<NamespaceA.SecondTableInA>) : NamespaceA.SecondTableInA.Pack(builder, _o.ReferToA2);
54     return CreateTableInC(
55       builder,
56       _refer_to_a1,
57       _refer_to_a2);
58   }
59 };
60 
61 public class TableInCT
62 {
63   [Newtonsoft.Json.JsonProperty("refer_to_a1")]
64   public NamespaceA.TableInFirstNST ReferToA1 { get; set; }
65   [Newtonsoft.Json.JsonProperty("refer_to_a2")]
66   public NamespaceA.SecondTableInAT ReferToA2 { get; set; }
67 
TableInCT()68   public TableInCT() {
69     this.ReferToA1 = null;
70     this.ReferToA2 = null;
71   }
72 }
73 
74 
75 }
76