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_intExpand 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:
sourcemust be valid for reads forsourceLenbytes. The entity ofsourcemust be contained in one allocated object!sourcemust point tosourceLenconsecutive properly initialized values of typeu8.destmust be valid for reads for*destLenbytes. The entity ofsourcemust be contained in one allocated object!destmust point to*destLenconsecutive properly initialized values of typeu8.- while this function runs, both read and write actions to the
sourceanddestmemory ranges are forbidden