...
1// <auto-generated>
2// automatically generated by the FlatBuffers compiler, do not modify
3// </auto-generated>
4
5namespace NamespaceA.NamespaceB
6{
7
8using global::System;
9using global::System.Collections.Generic;
10using global::Google.FlatBuffers;
11
12public struct StructInNestedNS : IFlatbufferObject
13{
14 private Struct __p;
15 public ByteBuffer ByteBuffer { get { return __p.bb; } }
16 public void __init(int _i, ByteBuffer _bb) { __p = new Struct(_i, _bb); }
17 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); } }
20 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); } }
22 public void MutateB(int b) { __p.bb.PutInt(__p.bb_pos + 4, b); }
23
24 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 }
30 public StructInNestedNST UnPack() {
31 var _o = new StructInNestedNST();
32 this.UnPackTo(_o);
33 return _o;
34 }
35 public void UnPackTo(StructInNestedNST _o) {
36 _o.A = this.A;
37 _o.B = this.B;
38 }
39 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
48public 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
55 public StructInNestedNST() {
56 this.A = 0;
57 this.B = 0;
58 }
59}
60
61
62}
View as plain text