// // 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 GachaGroupExcelTable : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static GachaGroupExcelTable GetRootAsGachaGroupExcelTable(ByteBuffer _bb) { return GetRootAsGachaGroupExcelTable(_bb, new GachaGroupExcelTable()); } public static GachaGroupExcelTable GetRootAsGachaGroupExcelTable(ByteBuffer _bb, GachaGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public GachaGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public SCHALE.Common.FlatData.GachaGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GachaGroupExcel?)(new SCHALE.Common.FlatData.GachaGroupExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } public static Offset CreateGachaGroupExcelTable(FlatBufferBuilder builder, VectorOffset DataListOffset = default(VectorOffset)) { builder.StartTable(1); GachaGroupExcelTable.AddDataList(builder, DataListOffset); return GachaGroupExcelTable.EndGachaGroupExcelTable(builder); } public static void StartGachaGroupExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static Offset EndGachaGroupExcelTable(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class GachaGroupExcelTableVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GachaGroupExcelVerify.Verify, false) && verifier.VerifyTableEnd(tablePos); } } }