// // 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 EmoticonSpecialExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static EmoticonSpecialExcel GetRootAsEmoticonSpecialExcel(ByteBuffer _bb) { return GetRootAsEmoticonSpecialExcel(_bb, new EmoticonSpecialExcel()); } public static EmoticonSpecialExcel GetRootAsEmoticonSpecialExcel(ByteBuffer _bb, EmoticonSpecialExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public EmoticonSpecialExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CharacterUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string Random { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetRandomBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetRandomBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetRandomArray() { return __p.__vector_as_array(8); } public static Offset CreateEmoticonSpecialExcel(FlatBufferBuilder builder, long UniqueId = 0, long CharacterUniqueId = 0, StringOffset RandomOffset = default(StringOffset)) { builder.StartTable(3); EmoticonSpecialExcel.AddCharacterUniqueId(builder, CharacterUniqueId); EmoticonSpecialExcel.AddUniqueId(builder, UniqueId); EmoticonSpecialExcel.AddRandom(builder, RandomOffset); return EmoticonSpecialExcel.EndEmoticonSpecialExcel(builder); } public static void StartEmoticonSpecialExcel(FlatBufferBuilder builder) { builder.StartTable(3); } public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } public static void AddCharacterUniqueId(FlatBufferBuilder builder, long characterUniqueId) { builder.AddLong(1, characterUniqueId, 0); } public static void AddRandom(FlatBufferBuilder builder, StringOffset randomOffset) { builder.AddOffset(2, randomOffset.Value, 0); } public static Offset EndEmoticonSpecialExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class EmoticonSpecialExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*CharacterUniqueId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 8 /*Random*/, false) && verifier.VerifyTableEnd(tablePos); } } }