コード例 #1
0
 public static Offset <ItemUserModel> CreateItemUserModel(FlatBufferBuilder builder,
                                                          ItemType itemType = ItemType.TRASH,
                                                          int count         = 0)
 {
     builder.StartObject(2);
     ItemUserModel.AddCount(builder, count);
     ItemUserModel.AddItemType(builder, itemType);
     return(ItemUserModel.EndItemUserModel(builder));
 }
コード例 #2
0
 public static ItemUserModel GetRootAsItemUserModel(ByteBuffer _bb, ItemUserModel obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }