Exemplo n.º 1
0
 public static Offset <CylinderShape> CreateCylinderShape(FlatBufferBuilder builder,
                                                          float diameter = 0.0f,
                                                          float height   = 0.0f)
 {
     builder.StartObject(2);
     CylinderShape.AddHeight(builder, height);
     CylinderShape.AddDiameter(builder, diameter);
     return(CylinderShape.EndCylinderShape(builder));
 }
Exemplo n.º 2
0
 public static CylinderShape GetRootAsCylinderShape(ByteBuffer _bb, CylinderShape obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }