Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 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; |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 9 | using global::System.Collections.Generic; |
Austin Schuh | 2dd86a9 | 2022-09-14 21:19:23 -0700 | [diff] [blame] | 10 | using global::Google.FlatBuffers; |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 11 | |
| 12 | public struct SecondTableInA : IFlatbufferObject |
| 13 | { |
| 14 | private Table __p; |
| 15 | public ByteBuffer ByteBuffer { get { return __p.bb; } } |
James Kuszmaul | 3b15b0c | 2022-11-08 14:03:16 -0800 | [diff] [blame^] | 16 | public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_22_10_26(); } |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 17 | public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb) { return GetRootAsSecondTableInA(_bb, new SecondTableInA()); } |
| 18 | public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA 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 SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } |
| 21 | |
| 22 | 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; } } |
| 23 | |
| 24 | public static Offset<NamespaceA.SecondTableInA> CreateSecondTableInA(FlatBufferBuilder builder, |
| 25 | Offset<NamespaceC.TableInC> refer_to_cOffset = default(Offset<NamespaceC.TableInC>)) { |
| 26 | builder.StartTable(1); |
| 27 | SecondTableInA.AddReferToC(builder, refer_to_cOffset); |
| 28 | return SecondTableInA.EndSecondTableInA(builder); |
| 29 | } |
| 30 | |
| 31 | public static void StartSecondTableInA(FlatBufferBuilder builder) { builder.StartTable(1); } |
| 32 | public static void AddReferToC(FlatBufferBuilder builder, Offset<NamespaceC.TableInC> referToCOffset) { builder.AddOffset(0, referToCOffset.Value, 0); } |
| 33 | public static Offset<NamespaceA.SecondTableInA> EndSecondTableInA(FlatBufferBuilder builder) { |
| 34 | int o = builder.EndTable(); |
| 35 | return new Offset<NamespaceA.SecondTableInA>(o); |
| 36 | } |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 37 | public SecondTableInAT UnPack() { |
| 38 | var _o = new SecondTableInAT(); |
| 39 | this.UnPackTo(_o); |
| 40 | return _o; |
| 41 | } |
| 42 | public void UnPackTo(SecondTableInAT _o) { |
| 43 | _o.ReferToC = this.ReferToC.HasValue ? this.ReferToC.Value.UnPack() : null; |
| 44 | } |
| 45 | public static Offset<NamespaceA.SecondTableInA> Pack(FlatBufferBuilder builder, SecondTableInAT _o) { |
| 46 | if (_o == null) return default(Offset<NamespaceA.SecondTableInA>); |
| 47 | var _refer_to_c = _o.ReferToC == null ? default(Offset<NamespaceC.TableInC>) : NamespaceC.TableInC.Pack(builder, _o.ReferToC); |
| 48 | return CreateSecondTableInA( |
| 49 | builder, |
| 50 | _refer_to_c); |
| 51 | } |
James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 52 | } |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 53 | |
Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 54 | public class SecondTableInAT |
| 55 | { |
| 56 | [Newtonsoft.Json.JsonProperty("refer_to_c")] |
| 57 | public NamespaceC.TableInCT ReferToC { get; set; } |
| 58 | |
| 59 | public SecondTableInAT() { |
| 60 | this.ReferToC = null; |
| 61 | } |
| 62 | } |
| 63 | |
Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 64 | |
| 65 | } |