Function ctru_sys::decompressV

source ·
pub unsafe extern "C" fn decompressV(
    iov: *const decompressIOVec,
    iovcnt: usize,
    callback: decompressCallback,
    userdata: *mut c_void,
    insize: usize
) -> bool
Expand description

Decompress data

§Arguments

  • iov (direction in) - Output vector
  • iovcnt (direction in) - Number of buffers
  • callback (direction in) - Data callback (see note)
  • userdata (direction in) - User data passed to callback (see note)
  • insize (direction in) - Size of userdata (see note)

§Returns

Whether succeeded

Note: If callback is null, userdata is a pointer to memory to read from, and insize is the size of that data. If callback is not null, userdata is passed to callback to fetch more data, and insize is unused.