blob: 2874a2738323035b3dd6941749a1d5c6f95857e1 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// <auto-generated>
2// automatically generated by the FlatBuffers compiler, do not modify
3// </auto-generated>
4
5namespace NamespaceA.NamespaceB
6{
7
8using global::System;
Austin Schuh272c6132020-11-14 16:37:52 -08009using global::System.Collections.Generic;
Austin Schuh2dd86a92022-09-14 21:19:23 -070010using global::Google.FlatBuffers;
Austin Schuhe89fa2d2019-08-14 20:24:23 -070011
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 }
Austin Schuh272c6132020-11-14 16:37:52 -080030 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 }
James Kuszmaul8e62b022022-03-22 09:33:25 -070046}
Austin Schuhe89fa2d2019-08-14 20:24:23 -070047
Austin Schuh272c6132020-11-14 16:37:52 -080048public 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 Schuhe89fa2d2019-08-14 20:24:23 -070061
62}