[go: up one dir, main page]

Function libz_rs_sys::uncompress

source ·
pub unsafe extern "C" fn uncompress(
    dest: *mut u8,
    destLen: *mut c_ulong,
    source: *const u8,
    sourceLen: c_ulong,
) -> c_int
Expand description

Inflates source into dest, and writes the final inflated size into destLen.

§Safety

Behavior is undefined if any of the following conditions are violated:

  • source must be valid for reads for sourceLen bytes. The entity of source must be contained in one allocated object!
  • source must point to sourceLen consecutive properly initialized values of type u8.
  • dest must be valid for reads for *destLen bytes. The entity of source must be contained in one allocated object!
  • dest must point to *destLen consecutive properly initialized values of type u8.
  • while this function runs, both read and write actions to the source and dest memory ranges are forbidden