Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 public static BookFlat GetRootAsBookFlat(ByteBuffer _bb, BookFlat obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }