Skip to main content

hurray_file_reader_destroy

Function hurray_file_reader_destroy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hurray_file_reader_destroy( handle: *mut *mut HurrayFileReader, ) -> HurrayStatus
Expand description

Destroys a reader, releases its transport context, and writes null through handle.

Tensors already produced by hurray_file_reader_read_tensor are unaffected: each owns its own buffers and outlives the reader. Name and KV pointers are not — they borrow from the handle and die with it.

§Safety

  • handle MUST be a valid, non-null pointer to a *mut HurrayFileReader from hurray_file_reader_new.
  • That reader MUST NOT have been destroyed already.