コード例 #1
0
 public static Offset <FooBarContainer> CreateFooBarContainer(FlatBufferBuilder builder,
                                                              VectorOffset listOffset     = default(VectorOffset),
                                                              bool initialized            = false,
                                                              short fruit                 = 0,
                                                              StringOffset locationOffset = default(StringOffset))
 {
     builder.StartObject(4);
     FooBarContainer.AddLocation(builder, locationOffset);
     FooBarContainer.AddList(builder, listOffset);
     FooBarContainer.AddFruit(builder, fruit);
     FooBarContainer.AddInitialized(builder, initialized);
     return(FooBarContainer.EndFooBarContainer(builder));
 }
コード例 #2
0
 public static FooBarContainer GetRootAsFooBarContainer(ByteBuffer _bb, FooBarContainer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }