Пример #1
0
 public static Offset <FlatProperties> CreateFlatProperties(FlatBufferBuilder builder,
                                                            StringOffset nameOffset = default(StringOffset),
                                                            VectorOffset iOffset    = default(VectorOffset),
                                                            VectorOffset lOffset    = default(VectorOffset),
                                                            VectorOffset dOffset    = default(VectorOffset),
                                                            VectorOffset aOffset    = default(VectorOffset))
 {
     builder.StartObject(5);
     FlatProperties.AddA(builder, aOffset);
     FlatProperties.AddD(builder, dOffset);
     FlatProperties.AddL(builder, lOffset);
     FlatProperties.AddI(builder, iOffset);
     FlatProperties.AddName(builder, nameOffset);
     return(FlatProperties.EndFlatProperties(builder));
 }
Пример #2
0
 public static FlatProperties GetRootAsFlatProperties(ByteBuffer _bb, FlatProperties obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }