1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 namespace NamespaceA.NamespaceB
4 {
5 
6 using System;
7 using FlatBuffers;
8 
9 public struct TableInNestedNS : IFlatbufferObject
10 {
11   private Table __p;
12   public ByteBuffer ByteBuffer { get { return __p.bb; } }
GetRootAsTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS13   public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb) { return GetRootAsTableInNestedNS(_bb, new TableInNestedNS()); }
GetRootAsTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS14   public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
__initNamespaceA.NamespaceB.TableInNestedNS15   public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
__assignNamespaceA.NamespaceB.TableInNestedNS16   public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
17 
18   public int Foo { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
MutateFooNamespaceA.NamespaceB.TableInNestedNS19   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; } }
20 
CreateTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS21   public static Offset<TableInNestedNS> CreateTableInNestedNS(FlatBufferBuilder builder,
22       int foo = 0) {
23     builder.StartObject(1);
24     TableInNestedNS.AddFoo(builder, foo);
25     return TableInNestedNS.EndTableInNestedNS(builder);
26   }
27 
StartTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS28   public static void StartTableInNestedNS(FlatBufferBuilder builder) { builder.StartObject(1); }
AddFooNamespaceA.NamespaceB.TableInNestedNS29   public static void AddFoo(FlatBufferBuilder builder, int foo) { builder.AddInt(0, foo, 0); }
EndTableInNestedNSNamespaceA.NamespaceB.TableInNestedNS30   public static Offset<TableInNestedNS> EndTableInNestedNS(FlatBufferBuilder builder) {
31     int o = builder.EndObject();
32     return new Offset<TableInNestedNS>(o);
33   }
34 };
35 
36 
37 }
38