blob: fab8e0200036cbdaa7a2fd220799df33b1301761 [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 TableInNestedNS : IFlatbufferObject
13{
14 private Table __p;
15 public ByteBuffer ByteBuffer { get { return __p.bb; } }
Austin Schuh2dd86a92022-09-14 21:19:23 -070016 public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_2_0_8(); }
Austin Schuhe89fa2d2019-08-14 20:24:23 -070017 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 }
Austin Schuh272c6132020-11-14 16:37:52 -080038 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 }
James Kuszmaul8e62b022022-03-22 09:33:25 -070052}
Austin Schuhe89fa2d2019-08-14 20:24:23 -070053
Austin Schuh272c6132020-11-14 16:37:52 -080054public 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
Austin Schuhe89fa2d2019-08-14 20:24:23 -070064
65}