Exemplo n.º 1
0
 public static Offset <PrimitiveArray> CreatePrimitiveArray(FlatBufferBuilder builder,
                                                            Type type         = Type.BOOL,
                                                            Encoding encoding = Encoding.PLAIN,
                                                            long offset       = 0,
                                                            long length       = 0,
                                                            long null_count   = 0,
                                                            long total_bytes  = 0)
 {
     builder.StartObject(6);
     PrimitiveArray.AddTotalBytes(builder, total_bytes);
     PrimitiveArray.AddNullCount(builder, null_count);
     PrimitiveArray.AddLength(builder, length);
     PrimitiveArray.AddOffset(builder, offset);
     PrimitiveArray.AddEncoding(builder, encoding);
     PrimitiveArray.AddType(builder, type);
     return(PrimitiveArray.EndPrimitiveArray(builder));
 }
Exemplo n.º 2
0
 public static PrimitiveArray GetRootAsPrimitiveArray(ByteBuffer _bb, PrimitiveArray obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }