rcpp_hdf5dataset_close: Close and destroy an HDF5 dataset handle immediately.
Description
Uses the live-pointer registry to prevent double-free: if the pointer
is no longer in the registry (already closed by close() or GC), this
is a safe no-op. Clears the external pointer so the GC finalizer
becomes a no-op too.
Usage
rcpp_hdf5dataset_close(ptr_sexp)
Arguments
- ptr_sexp
External pointer to hdf5Dataset