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::FlatBuffers; 10 11 public struct StructInNestedNS : IFlatbufferObject 12 { 13 private Struct __p; 14 public ByteBuffer ByteBuffer { get { return __p.bb; } } __initNamespaceA.NamespaceB.StructInNestedNS15 public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } __assignNamespaceA.NamespaceB.StructInNestedNS16 public StructInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 17 18 public int A { get { return __p.bb.GetInt(__p.bb_pos + 0); } } MutateANamespaceA.NamespaceB.StructInNestedNS19 public void MutateA(int a) { __p.bb.PutInt(__p.bb_pos + 0, a); } 20 public int B { get { return __p.bb.GetInt(__p.bb_pos + 4); } } MutateBNamespaceA.NamespaceB.StructInNestedNS21 public void MutateB(int b) { __p.bb.PutInt(__p.bb_pos + 4, b); } 22 CreateStructInNestedNSNamespaceA.NamespaceB.StructInNestedNS23 public static Offset<StructInNestedNS> CreateStructInNestedNS(FlatBufferBuilder builder, int A, int B) { 24 builder.Prep(4, 8); 25 builder.PutInt(B); 26 builder.PutInt(A); 27 return new Offset<StructInNestedNS>(builder.Offset); 28 } 29 }; 30 31 32 } 33