Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 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; |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame^] | 9 | using global::System.Collections.Generic; |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 10 | using global::FlatBuffers; |
| 11 | |
| 12 | public 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 | } |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame^] | 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 | } |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 46 | }; |
| 47 | |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame^] | 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 | |
| 55 | public StructInNestedNST() { |
| 56 | this.A = 0; |
| 57 | this.B = 0; |
| 58 | } |
| 59 | } |
| 60 | |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 61 | |
| 62 | } |