// // automatically generated by the FlatBuffers compiler, do not modify // namespace NamespaceA { using global::System; using global::FlatBuffers; public struct SecondTableInA : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb) { return GetRootAsSecondTableInA(_bb, new SecondTableInA()); } public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 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; } } public static Offset CreateSecondTableInA(FlatBufferBuilder builder, Offset refer_to_cOffset = default(Offset)) { builder.StartObject(1); SecondTableInA.AddReferToC(builder, refer_to_cOffset); return SecondTableInA.EndSecondTableInA(builder); } public static void StartSecondTableInA(FlatBufferBuilder builder) { builder.StartObject(1); } public static void AddReferToC(FlatBufferBuilder builder, Offset referToCOffset) { builder.AddOffset(0, referToCOffset.Value, 0); } public static Offset EndSecondTableInA(FlatBufferBuilder builder) { int o = builder.EndObject(); return new Offset(o); } }; }