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 forsourceLen
bytes. The entity ofsource
must be contained in one allocated object!source
must point tosourceLen
consecutive properly initialized values of typeu8
.dest
must be valid for reads for*destLen
bytes. The entity ofsource
must be contained in one allocated object!dest
must point to*destLen
consecutive properly initialized values of typeu8
.- while this function runs, both read and write actions to the
source
anddest
memory ranges are forbidden