public static Offset <BookFlat> CreateBookFlat(FlatBufferBuilder builder, StringOffset TitleOffset = default(StringOffset), int Id = 0) { builder.StartObject(2); BookFlat.AddId(builder, Id); BookFlat.AddTitle(builder, TitleOffset); return(BookFlat.EndBookFlat(builder)); }
public static Offset <SerializerTests.Serializers.BookFlat> CreateBookFlat(FlatBufferBuilder builder, StringOffset TitleOffset = default(StringOffset), int Id = 0, VectorOffset BookDataOffset = default(VectorOffset)) { builder.StartTable(3); BookFlat.AddBookData(builder, BookDataOffset); BookFlat.AddId(builder, Id); BookFlat.AddTitle(builder, TitleOffset); return(BookFlat.EndBookFlat(builder)); }
public static BookFlat GetRootAsBookFlat(ByteBuffer _bb, BookFlat obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }