// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::Google.FlatBuffers; public struct LimitedStageSeasonExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static LimitedStageSeasonExcel GetRootAsLimitedStageSeasonExcel(ByteBuffer _bb) { return GetRootAsLimitedStageSeasonExcel(_bb, new LimitedStageSeasonExcel()); } public static LimitedStageSeasonExcel GetRootAsLimitedStageSeasonExcel(ByteBuffer _bb, LimitedStageSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public LimitedStageSeasonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string StartDate { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStartDateBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetStartDateArray() { return __p.__vector_as_array(6); } public string EndDate { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEndDateBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetEndDateArray() { return __p.__vector_as_array(8); } public long TypeACount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long TypeBCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long TypeCCount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateLimitedStageSeasonExcel(FlatBufferBuilder builder, long Id = 0, StringOffset StartDateOffset = default(StringOffset), StringOffset EndDateOffset = default(StringOffset), long TypeACount = 0, long TypeBCount = 0, long TypeCCount = 0) { builder.StartTable(6); LimitedStageSeasonExcel.AddTypeCCount(builder, TypeCCount); LimitedStageSeasonExcel.AddTypeBCount(builder, TypeBCount); LimitedStageSeasonExcel.AddTypeACount(builder, TypeACount); LimitedStageSeasonExcel.AddId(builder, Id); LimitedStageSeasonExcel.AddEndDate(builder, EndDateOffset); LimitedStageSeasonExcel.AddStartDate(builder, StartDateOffset); return LimitedStageSeasonExcel.EndLimitedStageSeasonExcel(builder); } public static void StartLimitedStageSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(6); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(1, startDateOffset.Value, 0); } public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(2, endDateOffset.Value, 0); } public static void AddTypeACount(FlatBufferBuilder builder, long typeACount) { builder.AddLong(3, typeACount, 0); } public static void AddTypeBCount(FlatBufferBuilder builder, long typeBCount) { builder.AddLong(4, typeBCount, 0); } public static void AddTypeCCount(FlatBufferBuilder builder, long typeCCount) { builder.AddLong(5, typeCCount, 0); } public static Offset EndLimitedStageSeasonExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class LimitedStageSeasonExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 6 /*StartDate*/, false) && verifier.VerifyString(tablePos, 8 /*EndDate*/, false) && verifier.VerifyField(tablePos, 10 /*TypeACount*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 12 /*TypeBCount*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 14 /*TypeCCount*/, 8 /*long*/, 8, false) && verifier.VerifyTableEnd(tablePos); } } }