1 // <auto-generated> 2 // automatically generated by the FlatBuffers compiler, do not modify 3 // </auto-generated> 4 5 namespace NamespaceA.NamespaceB 6 { 7 8 using global::System; 9 using global::System.Collections.Generic; 10 using global::FlatBuffers; 11 12 public struct TableInNestedNS : IFlatbufferObject 13 { 14 private Table __p; 15 public ByteBuffer ByteBuffer { get { return __p.bb; } } ValidateVersionNamespaceA.NamespaceB.TableInNestedNS16 public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_1_12_0(); } GetRootAsTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS17 public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb) { return GetRootAsTableInNestedNS(_bb, new TableInNestedNS()); } GetRootAsTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS18 public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } __initNamespaceA.NamespaceB.TableInNestedNS19 public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } __assignNamespaceA.NamespaceB.TableInNestedNS20 public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 21 22 public int Foo { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } MutateFooNamespaceA.NamespaceB.TableInNestedNS23 public bool MutateFoo(int foo) { int o = __p.__offset(4); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, foo); return true; } else { return false; } } 24 CreateTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS25 public static Offset<NamespaceA.NamespaceB.TableInNestedNS> CreateTableInNestedNS(FlatBufferBuilder builder, 26 int foo = 0) { 27 builder.StartTable(1); 28 TableInNestedNS.AddFoo(builder, foo); 29 return TableInNestedNS.EndTableInNestedNS(builder); 30 } 31 StartTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS32 public static void StartTableInNestedNS(FlatBufferBuilder builder) { builder.StartTable(1); } AddFooNamespaceA.NamespaceB.TableInNestedNS33 public static void AddFoo(FlatBufferBuilder builder, int foo) { builder.AddInt(0, foo, 0); } EndTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS34 public static Offset<NamespaceA.NamespaceB.TableInNestedNS> EndTableInNestedNS(FlatBufferBuilder builder) { 35 int o = builder.EndTable(); 36 return new Offset<NamespaceA.NamespaceB.TableInNestedNS>(o); 37 } UnPackNamespaceA.NamespaceB.TableInNestedNS38 public TableInNestedNST UnPack() { 39 var _o = new TableInNestedNST(); 40 this.UnPackTo(_o); 41 return _o; 42 } UnPackToNamespaceA.NamespaceB.TableInNestedNS43 public void UnPackTo(TableInNestedNST _o) { 44 _o.Foo = this.Foo; 45 } PackNamespaceA.NamespaceB.TableInNestedNS46 public static Offset<NamespaceA.NamespaceB.TableInNestedNS> Pack(FlatBufferBuilder builder, TableInNestedNST _o) { 47 if (_o == null) return default(Offset<NamespaceA.NamespaceB.TableInNestedNS>); 48 return CreateTableInNestedNS( 49 builder, 50 _o.Foo); 51 } 52 }; 53 54 public class TableInNestedNST 55 { 56 [Newtonsoft.Json.JsonProperty("foo")] 57 public int Foo { get; set; } 58 TableInNestedNST()59 public TableInNestedNST() { 60 this.Foo = 0; 61 } 62 } 63 64 65 } 66