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; |
| 9 | using global::FlatBuffers; |
| 10 | |
| 11 | public struct TableInNestedNS : IFlatbufferObject |
| 12 | { |
| 13 | private Table __p; |
| 14 | public ByteBuffer ByteBuffer { get { return __p.bb; } } |
| 15 | public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_1_11_1(); } |
| 16 | public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb) { return GetRootAsTableInNestedNS(_bb, new TableInNestedNS()); } |
| 17 | public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } |
| 18 | public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } |
| 19 | public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } |
| 20 | |
| 21 | public int Foo { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } |
| 22 | 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; } } |
| 23 | |
| 24 | public static Offset<NamespaceA.NamespaceB.TableInNestedNS> CreateTableInNestedNS(FlatBufferBuilder builder, |
| 25 | int foo = 0) { |
| 26 | builder.StartTable(1); |
| 27 | TableInNestedNS.AddFoo(builder, foo); |
| 28 | return TableInNestedNS.EndTableInNestedNS(builder); |
| 29 | } |
| 30 | |
| 31 | public static void StartTableInNestedNS(FlatBufferBuilder builder) { builder.StartTable(1); } |
| 32 | public static void AddFoo(FlatBufferBuilder builder, int foo) { builder.AddInt(0, foo, 0); } |
| 33 | public static Offset<NamespaceA.NamespaceB.TableInNestedNS> EndTableInNestedNS(FlatBufferBuilder builder) { |
| 34 | int o = builder.EndTable(); |
| 35 | return new Offset<NamespaceA.NamespaceB.TableInNestedNS>(o); |
| 36 | } |
| 37 | }; |
| 38 | |
| 39 | |
| 40 | } |