2021-08-16 18:09:21 +00:00
|
|
|
// <auto-generated>
|
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
// </auto-generated>
|
|
|
|
|
2021-09-09 17:29:27 +00:00
|
|
|
namespace KeywordTest
|
|
|
|
{
|
|
|
|
|
2021-08-16 18:09:21 +00:00
|
|
|
using global::System;
|
|
|
|
using global::System.Collections.Generic;
|
|
|
|
using global::FlatBuffers;
|
|
|
|
|
|
|
|
public struct KeywordsInTable : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_2_0_0(); }
|
|
|
|
public static KeywordsInTable GetRootAsKeywordsInTable(ByteBuffer _bb) { return GetRootAsKeywordsInTable(_bb, new KeywordsInTable()); }
|
|
|
|
public static KeywordsInTable GetRootAsKeywordsInTable(ByteBuffer _bb, KeywordsInTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public KeywordsInTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
2021-09-09 17:29:27 +00:00
|
|
|
public KeywordTest.ABC Is { get { int o = __p.__offset(4); return o != 0 ? (KeywordTest.ABC)__p.bb.GetInt(o + __p.bb_pos) : KeywordTest.ABC.@void; } }
|
|
|
|
public bool MutateIs(KeywordTest.ABC @is) { int o = __p.__offset(4); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, (int)@is); return true; } else { return false; } }
|
|
|
|
public KeywordTest.@public Private { get { int o = __p.__offset(6); return o != 0 ? (KeywordTest.@public)__p.bb.GetInt(o + __p.bb_pos) : KeywordTest.@public.NONE; } }
|
|
|
|
public bool MutatePrivate(KeywordTest.@public @private) { int o = __p.__offset(6); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, (int)@private); return true; } else { return false; } }
|
2021-08-18 19:37:44 +00:00
|
|
|
public int Type { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
|
|
|
public bool MutateType(int type) { int o = __p.__offset(8); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, type); return true; } else { return false; } }
|
2022-03-28 22:07:09 +00:00
|
|
|
public bool Default { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
|
|
public bool MutateDefault(bool @default) { int o = __p.__offset(10); if (o != 0) { __p.bb.Put(o + __p.bb_pos, (byte)(@default ? 1 : 0)); return true; } else { return false; } }
|
2021-08-16 18:09:21 +00:00
|
|
|
|
2021-09-09 17:29:27 +00:00
|
|
|
public static Offset<KeywordTest.KeywordsInTable> CreateKeywordsInTable(FlatBufferBuilder builder,
|
|
|
|
KeywordTest.ABC @is = KeywordTest.ABC.@void,
|
|
|
|
KeywordTest.@public @private = KeywordTest.@public.NONE,
|
2022-03-28 22:07:09 +00:00
|
|
|
int type = 0,
|
|
|
|
bool @default = false) {
|
|
|
|
builder.StartTable(4);
|
2021-08-18 19:37:44 +00:00
|
|
|
KeywordsInTable.AddType(builder, type);
|
2021-09-09 17:29:27 +00:00
|
|
|
KeywordsInTable.AddPrivate(builder, @private);
|
|
|
|
KeywordsInTable.AddIs(builder, @is);
|
2022-03-28 22:07:09 +00:00
|
|
|
KeywordsInTable.AddDefault(builder, @default);
|
2021-08-16 18:09:21 +00:00
|
|
|
return KeywordsInTable.EndKeywordsInTable(builder);
|
|
|
|
}
|
|
|
|
|
2022-03-28 22:07:09 +00:00
|
|
|
public static void StartKeywordsInTable(FlatBufferBuilder builder) { builder.StartTable(4); }
|
2021-09-09 17:29:27 +00:00
|
|
|
public static void AddIs(FlatBufferBuilder builder, KeywordTest.ABC @is) { builder.AddInt(0, (int)@is, 0); }
|
|
|
|
public static void AddPrivate(FlatBufferBuilder builder, KeywordTest.@public @private) { builder.AddInt(1, (int)@private, 0); }
|
2021-08-18 19:37:44 +00:00
|
|
|
public static void AddType(FlatBufferBuilder builder, int type) { builder.AddInt(2, type, 0); }
|
2022-03-28 22:07:09 +00:00
|
|
|
public static void AddDefault(FlatBufferBuilder builder, bool @default) { builder.AddBool(3, @default, false); }
|
2021-09-09 17:29:27 +00:00
|
|
|
public static Offset<KeywordTest.KeywordsInTable> EndKeywordsInTable(FlatBufferBuilder builder) {
|
2021-08-16 18:09:21 +00:00
|
|
|
int o = builder.EndTable();
|
2021-09-09 17:29:27 +00:00
|
|
|
return new Offset<KeywordTest.KeywordsInTable>(o);
|
2021-08-16 18:09:21 +00:00
|
|
|
}
|
|
|
|
public KeywordsInTableT UnPack() {
|
|
|
|
var _o = new KeywordsInTableT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(KeywordsInTableT _o) {
|
|
|
|
_o.Is = this.Is;
|
|
|
|
_o.Private = this.Private;
|
2021-08-18 19:37:44 +00:00
|
|
|
_o.Type = this.Type;
|
2022-03-28 22:07:09 +00:00
|
|
|
_o.Default = this.Default;
|
2021-08-16 18:09:21 +00:00
|
|
|
}
|
2021-09-09 17:29:27 +00:00
|
|
|
public static Offset<KeywordTest.KeywordsInTable> Pack(FlatBufferBuilder builder, KeywordsInTableT _o) {
|
|
|
|
if (_o == null) return default(Offset<KeywordTest.KeywordsInTable>);
|
2021-08-16 18:09:21 +00:00
|
|
|
return CreateKeywordsInTable(
|
|
|
|
builder,
|
|
|
|
_o.Is,
|
2021-08-18 19:37:44 +00:00
|
|
|
_o.Private,
|
2022-03-28 22:07:09 +00:00
|
|
|
_o.Type,
|
|
|
|
_o.Default);
|
2021-08-16 18:09:21 +00:00
|
|
|
}
|
2021-08-17 15:02:57 +00:00
|
|
|
}
|
2021-08-16 18:09:21 +00:00
|
|
|
|
|
|
|
public class KeywordsInTableT
|
|
|
|
{
|
|
|
|
[Newtonsoft.Json.JsonProperty("is")]
|
2021-09-09 17:29:27 +00:00
|
|
|
public KeywordTest.ABC Is { get; set; }
|
2021-08-16 18:09:21 +00:00
|
|
|
[Newtonsoft.Json.JsonProperty("private")]
|
2021-09-09 17:29:27 +00:00
|
|
|
public KeywordTest.@public Private { get; set; }
|
2021-08-18 19:37:44 +00:00
|
|
|
[Newtonsoft.Json.JsonProperty("type")]
|
|
|
|
public int Type { get; set; }
|
2022-03-28 22:07:09 +00:00
|
|
|
[Newtonsoft.Json.JsonProperty("default")]
|
|
|
|
public bool Default { get; set; }
|
2021-08-16 18:09:21 +00:00
|
|
|
|
|
|
|
public KeywordsInTableT() {
|
2021-09-09 17:29:27 +00:00
|
|
|
this.Is = KeywordTest.ABC.@void;
|
|
|
|
this.Private = KeywordTest.@public.NONE;
|
2021-08-18 19:37:44 +00:00
|
|
|
this.Type = 0;
|
2022-03-28 22:07:09 +00:00
|
|
|
this.Default = false;
|
2021-08-16 18:09:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-09 17:29:27 +00:00
|
|
|
|
|
|
|
}
|