Exemple #1
0
 public static Offset <CategoriesData> CreateCategoriesData(FlatBufferBuilder builder,
                                                            StringOffset categoryOffset = default(StringOffset),
                                                            int weight = 0,
                                                            StringOffset groupOffset = default(StringOffset))
 {
     builder.StartObject(3);
     CategoriesData.AddGroup(builder, groupOffset);
     CategoriesData.AddWeight(builder, weight);
     CategoriesData.AddCategory(builder, categoryOffset);
     return(CategoriesData.EndCategoriesData(builder));
 }
Exemple #2
0
 public static CategoriesData GetRootAsCategoriesData(ByteBuffer _bb, CategoriesData obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
Exemple #3
0
 public CategoriesData GetCategories(CategoriesData obj, int j)
 {
     int o = __offset(4); return(o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null);
 }