...
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 TableInNestedNS : IFlatbufferObject
13{
14 private Table __p;
15 public ByteBuffer ByteBuffer { get { return __p.bb; } }
16 public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); }
17 public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb) { return GetRootAsTableInNestedNS(_bb, new TableInNestedNS()); }
18 public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
19 public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
20 public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
21
22 public int Foo { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
23 public bool MutateFoo(int foo) { int o = __p.__offset(4); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, foo); return true; } else { return false; } }
24
25 public static Offset<NamespaceA.NamespaceB.TableInNestedNS> CreateTableInNestedNS(FlatBufferBuilder builder,
26 int foo = 0) {
27 builder.StartTable(1);
28 TableInNestedNS.AddFoo(builder, foo);
29 return TableInNestedNS.EndTableInNestedNS(builder);
30 }
31
32 public static void StartTableInNestedNS(FlatBufferBuilder builder) { builder.StartTable(1); }
33 public static void AddFoo(FlatBufferBuilder builder, int foo) { builder.AddInt(0, foo, 0); }
34 public static Offset<NamespaceA.NamespaceB.TableInNestedNS> EndTableInNestedNS(FlatBufferBuilder builder) {
35 int o = builder.EndTable();
36 return new Offset<NamespaceA.NamespaceB.TableInNestedNS>(o);
37 }
38 public TableInNestedNST UnPack() {
39 var _o = new TableInNestedNST();
40 this.UnPackTo(_o);
41 return _o;
42 }
43 public void UnPackTo(TableInNestedNST _o) {
44 _o.Foo = this.Foo;
45 }
46 public static Offset<NamespaceA.NamespaceB.TableInNestedNS> Pack(FlatBufferBuilder builder, TableInNestedNST _o) {
47 if (_o == null) return default(Offset<NamespaceA.NamespaceB.TableInNestedNS>);
48 return CreateTableInNestedNS(
49 builder,
50 _o.Foo);
51 }
52}
53
54public class TableInNestedNST
55{
56 [Newtonsoft.Json.JsonProperty("foo")]
57 public int Foo { get; set; }
58
59 public TableInNestedNST() {
60 this.Foo = 0;
61 }
62}
63
64
65static public class TableInNestedNSVerify
66{
67 static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
68 {
69 return verifier.VerifyTableStart(tablePos)
70 && verifier.VerifyField(tablePos, 4 /*Foo*/, 4 /*int*/, 4, false)
71 && verifier.VerifyTableEnd(tablePos);
72 }
73}
74
75}
View as plain text