1 // <auto-generated> 2 // automatically generated by the FlatBuffers compiler, do not modify 3 // </auto-generated> 4 5 using global::System; 6 using global::FlatBuffers; 7 8 public struct Movie : IFlatbufferObject 9 { 10 private Table __p; 11 public ByteBuffer ByteBuffer { get { return __p.bb; } } GetRootAsMovieMovie12 public static Movie GetRootAsMovie(ByteBuffer _bb) { return GetRootAsMovie(_bb, new Movie()); } GetRootAsMovieMovie13 public static Movie GetRootAsMovie(ByteBuffer _bb, Movie obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } MovieBufferHasIdentifierMovie14 public static bool MovieBufferHasIdentifier(ByteBuffer _bb) { return Table.__has_identifier(_bb, "MOVI"); } __initMovie15 public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } __assignMovie16 public Movie __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 17 18 public Character MainCharacterType { get { int o = __p.__offset(4); return o != 0 ? (Character)__p.bb.Get(o + __p.bb_pos) : Character.NONE; } } 19 public TTable? MainCharacter<TTable>() where TTable : struct, IFlatbufferObject { int o = __p.__offset(6); return o != 0 ? (TTable?)__p.__union<TTable>(o) : null; } CharactersTypeMovie20 public Character CharactersType(int j) { int o = __p.__offset(8); return o != 0 ? (Character)__p.bb.Get(__p.__vector(o) + j * 1) : (Character)0; } 21 public int CharactersTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } 22 #if ENABLE_SPAN_T GetCharactersTypeBytesMovie23 public Span<byte> GetCharactersTypeBytes() { return __p.__vector_as_span(8); } 24 #else GetCharactersTypeBytesMovie25 public ArraySegment<byte>? GetCharactersTypeBytes() { return __p.__vector_as_arraysegment(8); } 26 #endif GetCharactersTypeArrayMovie27 public Character[] GetCharactersTypeArray() { return __p.__vector_as_array<Character>(8); } 28 public TTable? Characters<TTable>(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union<TTable>(__p.__vector(o) + j * 4) : null; } 29 public int CharactersLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } 30 CreateMovieMovie31 public static Offset<Movie> CreateMovie(FlatBufferBuilder builder, 32 Character main_character_type = Character.NONE, 33 int main_characterOffset = 0, 34 VectorOffset characters_typeOffset = default(VectorOffset), 35 VectorOffset charactersOffset = default(VectorOffset)) { 36 builder.StartObject(4); 37 Movie.AddCharacters(builder, charactersOffset); 38 Movie.AddCharactersType(builder, characters_typeOffset); 39 Movie.AddMainCharacter(builder, main_characterOffset); 40 Movie.AddMainCharacterType(builder, main_character_type); 41 return Movie.EndMovie(builder); 42 } 43 StartMovieMovie44 public static void StartMovie(FlatBufferBuilder builder) { builder.StartObject(4); } AddMainCharacterTypeMovie45 public static void AddMainCharacterType(FlatBufferBuilder builder, Character mainCharacterType) { builder.AddByte(0, (byte)mainCharacterType, 0); } AddMainCharacterMovie46 public static void AddMainCharacter(FlatBufferBuilder builder, int mainCharacterOffset) { builder.AddOffset(1, mainCharacterOffset, 0); } AddCharactersTypeMovie47 public static void AddCharactersType(FlatBufferBuilder builder, VectorOffset charactersTypeOffset) { builder.AddOffset(2, charactersTypeOffset.Value, 0); } CreateCharactersTypeVectorMovie48 public static VectorOffset CreateCharactersTypeVector(FlatBufferBuilder builder, Character[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } CreateCharactersTypeVectorBlockMovie49 public static VectorOffset CreateCharactersTypeVectorBlock(FlatBufferBuilder builder, Character[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } StartCharactersTypeVectorMovie50 public static void StartCharactersTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } AddCharactersMovie51 public static void AddCharacters(FlatBufferBuilder builder, VectorOffset charactersOffset) { builder.AddOffset(3, charactersOffset.Value, 0); } CreateCharactersVectorMovie52 public static VectorOffset CreateCharactersVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } CreateCharactersVectorBlockMovie53 public static VectorOffset CreateCharactersVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } StartCharactersVectorMovie54 public static void StartCharactersVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } EndMovieMovie55 public static Offset<Movie> EndMovie(FlatBufferBuilder builder) { 56 int o = builder.EndObject(); 57 return new Offset<Movie>(o); 58 } FinishMovieBufferMovie59 public static void FinishMovieBuffer(FlatBufferBuilder builder, Offset<Movie> offset) { builder.Finish(offset.Value, "MOVI"); } FinishSizePrefixedMovieBufferMovie60 public static void FinishSizePrefixedMovieBuffer(FlatBufferBuilder builder, Offset<Movie> offset) { builder.FinishSizePrefixed(offset.Value, "MOVI"); } 61 }; 62 63