Function blosc_sys::blosc_decompress[][src]

pub unsafe extern "C" fn blosc_decompress(
    src: *const c_void,
    dest: *mut c_void,
    destsize: usize
) -> c_int

Decompress a block of compressed data in src, put the result in dest and returns the size of the decompressed block.

The src buffer and the dest buffer can not overlap.

Decompression is memory safe and guaranteed not to write the dest buffer beyond what is specified in destsize.

If an error occurs, e.g. the compressed data is corrupted or the output buffer is not large enough, then 0 (zero) or a negative value will be returned instead.

Environment variables

blosc_decompress() honors different environment variables to control internal parameters without the need of doing that programatically. Here are the ones supported:

BLOSC_NTHREADS=(INTEGER): This will call blosc_set_nthreads(BLOSC_NTHREADS) before the proper decompression process starts.

BLOSC_NOLOCK=(ANY VALUE): This will call blosc_decompress_ctx() under the hood, with the numinternalthreads parameter set to the same value as the last call to blosc_set_nthreads().