Beispiel #1
0
 public static Offset <Flake> CreateFlake(FlatBufferBuilder builder,
                                          StringOffset labelOffset    = default(StringOffset),
                                          VectorOffset vector3sOffset = default(VectorOffset),
                                          VectorOffset vector4sOffset = default(VectorOffset),
                                          VectorOffset floatsOffset   = default(VectorOffset),
                                          VectorOffset intsOffset     = default(VectorOffset),
                                          VectorOffset bytesOffset    = default(VectorOffset),
                                          StringOffset textOffset     = default(StringOffset))
 {
     builder.StartObject(7);
     Flake.AddText(builder, textOffset);
     Flake.AddBytes(builder, bytesOffset);
     Flake.AddInts(builder, intsOffset);
     Flake.AddFloats(builder, floatsOffset);
     Flake.AddVector4s(builder, vector4sOffset);
     Flake.AddVector3s(builder, vector3sOffset);
     Flake.AddLabel(builder, labelOffset);
     return(Flake.EndFlake(builder));
 }
Beispiel #2
0
 public static Flake GetRootAsFlake(ByteBuffer _bb, Flake obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }