public static Offset <FlatArray> CreateFlatArray(FlatBufferBuilder builder,
                                                  VectorOffset shapeOffset  = default(VectorOffset),
                                                  VectorOffset bufferOffset = default(VectorOffset),
                                                  DType dtype         = DType.INHERIT,
                                                  ByteOrder byteOrder = ByteOrder.LE)
 {
     builder.StartObject(4);
     FlatArray.AddBuffer(builder, bufferOffset);
     FlatArray.AddShape(builder, shapeOffset);
     FlatArray.AddByteOrder(builder, byteOrder);
     FlatArray.AddDtype(builder, dtype);
     return(FlatArray.EndFlatArray(builder));
 }
 public static FlatArray GetRootAsFlatArray(ByteBuffer _bb, FlatArray obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }