count method

int count()

Number of live vectors.

Implementation

int count() {
  _ensureOpen();
  final outPtr = calloc<Size>();
  try {
    final status = _b.count(_owner.pointer, outPtr);
    if (status != PhoenixStatus.ok) _throw(status, 'count');
    return outPtr.value;
  } finally {
    calloc.free(outPtr);
  }
}