open static method

ZvecCollection open(
  1. String path
)

Implementation

static ZvecCollection open(String path) {
  final pathPointer = path.toNativeUtf8();
  final out = calloc<Pointer<Void>>();

  try {
    final status = _bindings.zvecOpenCollection(pathPointer, out);
    _throwIfFailed(status);
    return ZvecCollection._(out.value);
  } finally {
    calloc.free(pathPointer);
    calloc.free(out);
  }
}