// // 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 LocalizeEtcExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static LocalizeEtcExcel GetRootAsLocalizeEtcExcel(ByteBuffer _bb) { return GetRootAsLocalizeEtcExcel(_bb, new LocalizeEtcExcel()); } public static LocalizeEtcExcel GetRootAsLocalizeEtcExcel(ByteBuffer _bb, LocalizeEtcExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public LocalizeEtcExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string NameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNameKrBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetNameKrBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetNameKrArray() { return __p.__vector_as_array(6); } public string DescriptionKr { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDescriptionKrBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetDescriptionKrBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetDescriptionKrArray() { return __p.__vector_as_array(8); } public string NameJp { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNameJpBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetNameJpBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetNameJpArray() { return __p.__vector_as_array(10); } public string DescriptionJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDescriptionJpBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetDescriptionJpBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetDescriptionJpArray() { return __p.__vector_as_array(12); } public static Offset CreateLocalizeEtcExcel(FlatBufferBuilder builder, uint Key = 0, StringOffset NameKrOffset = default(StringOffset), StringOffset DescriptionKrOffset = default(StringOffset), StringOffset NameJpOffset = default(StringOffset), StringOffset DescriptionJpOffset = default(StringOffset)) { builder.StartTable(5); LocalizeEtcExcel.AddDescriptionJp(builder, DescriptionJpOffset); LocalizeEtcExcel.AddNameJp(builder, NameJpOffset); LocalizeEtcExcel.AddDescriptionKr(builder, DescriptionKrOffset); LocalizeEtcExcel.AddNameKr(builder, NameKrOffset); LocalizeEtcExcel.AddKey(builder, Key); return LocalizeEtcExcel.EndLocalizeEtcExcel(builder); } public static void StartLocalizeEtcExcel(FlatBufferBuilder builder) { builder.StartTable(5); } public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } public static void AddNameKr(FlatBufferBuilder builder, StringOffset nameKrOffset) { builder.AddOffset(1, nameKrOffset.Value, 0); } public static void AddDescriptionKr(FlatBufferBuilder builder, StringOffset descriptionKrOffset) { builder.AddOffset(2, descriptionKrOffset.Value, 0); } public static void AddNameJp(FlatBufferBuilder builder, StringOffset nameJpOffset) { builder.AddOffset(3, nameJpOffset.Value, 0); } public static void AddDescriptionJp(FlatBufferBuilder builder, StringOffset descriptionJpOffset) { builder.AddOffset(4, descriptionJpOffset.Value, 0); } public static Offset EndLocalizeEtcExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class LocalizeEtcExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) && verifier.VerifyString(tablePos, 6 /*NameKr*/, false) && verifier.VerifyString(tablePos, 8 /*DescriptionKr*/, false) && verifier.VerifyString(tablePos, 10 /*NameJp*/, false) && verifier.VerifyString(tablePos, 12 /*DescriptionJp*/, false) && verifier.VerifyTableEnd(tablePos); } } }