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)); }
public static ItemUserModel GetRootAsItemUserModel(ByteBuffer _bb, ItemUserModel obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }