Function ctru_sys::decompressHeader

source ·
pub unsafe extern "C" fn decompressHeader(
    type_: *mut decompressType,
    size: *mut usize,
    callback: decompressCallback,
    userdata: *mut c_void,
    insize: usize
) -> isize
Expand description

Decode decompression header

§Arguments

  • type (direction out) - Decompression type
  • size (direction out) - Decompressed size
  • callback (direction in) - Data callback (see decompressV())
  • userdata (direction in) - User data passed to callback (see decompressV())
  • insize (direction in) - Size of userdata (see decompressV())

§Returns

Bytes consumed

  • -1 - error