Function chd_read_header

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn chd_read_header(
    filename: *const c_char,
    header: *mut MaybeUninit<chd_header>,
) -> chd_error
Expand description

Read CHD header data from the file into the pointed struct.

ยงSafety

  • filename is a valid, null-terminated UTF-8 string.
  • header is either NULL, or an aligned pointer to a possibly uninitialized chd_header struct.
  • If header is NULL, returns CHDERR_INVALID_PARAMETER