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 StructInNestedNS : IFlatbufferObject 13 { 14 private Struct __p; 15 public ByteBuffer ByteBuffer { get { return __p.bb; } } __initNamespaceA.NamespaceB.StructInNestedNS16 public void __init(int _i, ByteBuffer _bb) { __p = new Struct(_i, _bb); } __assignNamespaceA.NamespaceB.StructInNestedNS17 public StructInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 18 19 public int A { get { return __p.bb.GetInt(__p.bb_pos + 0); } } MutateANamespaceA.NamespaceB.StructInNestedNS20 public void MutateA(int a) { __p.bb.PutInt(__p.bb_pos + 0, a); } 21 public int B { get { return __p.bb.GetInt(__p.bb_pos + 4); } } MutateBNamespaceA.NamespaceB.StructInNestedNS22 public void MutateB(int b) { __p.bb.PutInt(__p.bb_pos + 4, b); } 23 CreateStructInNestedNSNamespaceA.NamespaceB.StructInNestedNS24 public static Offset<NamespaceA.NamespaceB.StructInNestedNS> CreateStructInNestedNS(FlatBufferBuilder builder, int A, int B) { 25 builder.Prep(4, 8); 26 builder.PutInt(B); 27 builder.PutInt(A); 28 return new Offset<NamespaceA.NamespaceB.StructInNestedNS>(builder.Offset); 29 } UnPackNamespaceA.NamespaceB.StructInNestedNS30 public StructInNestedNST UnPack() { 31 var _o = new StructInNestedNST(); 32 this.UnPackTo(_o); 33 return _o; 34 } UnPackToNamespaceA.NamespaceB.StructInNestedNS35 public void UnPackTo(StructInNestedNST _o) { 36 _o.A = this.A; 37 _o.B = this.B; 38 } PackNamespaceA.NamespaceB.StructInNestedNS39 public static Offset<NamespaceA.NamespaceB.StructInNestedNS> Pack(FlatBufferBuilder builder, StructInNestedNST _o) { 40 if (_o == null) return default(Offset<NamespaceA.NamespaceB.StructInNestedNS>); 41 return CreateStructInNestedNS( 42 builder, 43 _o.A, 44 _o.B); 45 } 46 }; 47 48 public class StructInNestedNST 49 { 50 [Newtonsoft.Json.JsonProperty("a")] 51 public int A { get; set; } 52 [Newtonsoft.Json.JsonProperty("b")] 53 public int B { get; set; } 54 StructInNestedNST()55 public StructInNestedNST() { 56 this.A = 0; 57 this.B = 0; 58 } 59 } 60 61 62 } 63