1// automatically generated by the FlatBuffers compiler, do not modify 2 3namespace NamespaceA.NamespaceB 4{ 5 6using System; 7using FlatBuffers; 8 9public struct TableInNestedNS : IFlatbufferObject 10{ 11 private Table __p; 12 public ByteBuffer ByteBuffer { get { return __p.bb; } } 13 public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb) { return GetRootAsTableInNestedNS(_bb, new TableInNestedNS()); } 14 public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } 15 public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } 16 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; } } 19 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 21 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 28 public static void StartTableInNestedNS(FlatBufferBuilder builder) { builder.StartObject(1); } 29 public static void AddFoo(FlatBufferBuilder builder, int foo) { builder.AddInt(0, foo, 0); } 30 public static Offset<TableInNestedNS> EndTableInNestedNS(FlatBufferBuilder builder) { 31 int o = builder.EndObject(); 32 return new Offset<TableInNestedNS>(o); 33 } 34}; 35 36 37} 38