#[unsafe(no_mangle)]pub unsafe extern "C" fn hurray_file_reader_tensor_name(
handle: *const HurrayFileReader,
index: u64,
out_name: *mut *const u8,
out_len: *mut usize,
) -> HurrayStatusExpand description
Borrows the name of index entry index as UTF-8 bytes.
The bytes are not NUL-terminated and are owned by the reader: valid until
hurray_file_reader_destroy, never to be freed by the caller.
Returns HURRAY_ERR_INDEX_OUT_OF_BOUNDS if
index is past the end.
ยงSafety
handle, out_name and out_len MUST be valid, non-null pointers.