#[unsafe(no_mangle)]
pub unsafe extern "C" fn chd_read(
chd: *mut chd_file,
hunknum: u32,
buffer: *mut c_void,
) -> chd_errorExpand description
Read a single hunk from the CHD file.
ยงSafety
chdis eitherNULLor a valid pointer to achd_fileobtained fromchd_open,chd_open_file, orchd_open_core_file.buffermust an aligned pointer to a block of initialized memory of exactly the hunk size for the inputchd_file*that is valid for both reads and writes. This size can be found withchd_get_header.- If
chdisNULL, returnsCHDERR_INVALID_PARAMETER.