#[unsafe(no_mangle)]
pub unsafe extern "C" fn chd_get_header(
chd: *const chd_file,
) -> *const chd_headerExpand description
Returns a pointer to the extracted CHD header data.
ยงSafety
chdis eitherNULLor a valid pointer to achd_fileobtained fromchd_open,chd_open_file, orchd_open_core_file.- If
chdisNULL, returnsNULL. - The returned pointer is leaked and the memory should not and can not ever be validly freed. Attempting to free the returned pointer with
freeis undefined behaviour. A non-leaking variant is provided inchd_read_header.