예제 #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));
 }
예제 #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));
 }
예제 #3
0
 public static BookFlat GetRootAsBookFlat(ByteBuffer _bb, BookFlat obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }