• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //  automatically generated by the FlatBuffers compiler, do not modify
3 // </auto-generated>
4 
5 namespace NamespaceA
6 {
7 
8 using global::System;
9 using global::FlatBuffers;
10 
11 public struct SecondTableInA : IFlatbufferObject
12 {
13   private Table __p;
14   public ByteBuffer ByteBuffer { get { return __p.bb; } }
GetRootAsSecondTableInANamespaceA.SecondTableInA15   public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb) { return GetRootAsSecondTableInA(_bb, new SecondTableInA()); }
GetRootAsSecondTableInANamespaceA.SecondTableInA16   public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
__initNamespaceA.SecondTableInA17   public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
__assignNamespaceA.SecondTableInA18   public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
19 
20   public NamespaceC.TableInC? ReferToC { get { int o = __p.__offset(4); return o != 0 ? (NamespaceC.TableInC?)(new NamespaceC.TableInC()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
21 
CreateSecondTableInANamespaceA.SecondTableInA22   public static Offset<SecondTableInA> CreateSecondTableInA(FlatBufferBuilder builder,
23       Offset<NamespaceC.TableInC> refer_to_cOffset = default(Offset<NamespaceC.TableInC>)) {
24     builder.StartObject(1);
25     SecondTableInA.AddReferToC(builder, refer_to_cOffset);
26     return SecondTableInA.EndSecondTableInA(builder);
27   }
28 
StartSecondTableInANamespaceA.SecondTableInA29   public static void StartSecondTableInA(FlatBufferBuilder builder) { builder.StartObject(1); }
AddReferToCNamespaceA.SecondTableInA30   public static void AddReferToC(FlatBufferBuilder builder, Offset<NamespaceC.TableInC> referToCOffset) { builder.AddOffset(0, referToCOffset.Value, 0); }
EndSecondTableInANamespaceA.SecondTableInA31   public static Offset<SecondTableInA> EndSecondTableInA(FlatBufferBuilder builder) {
32     int o = builder.EndObject();
33     return new Offset<SecondTableInA>(o);
34   }
35 };
36 
37 
38 }
39