Function blosc_sys::blosc_compress_ctx [] [src]

pub unsafe extern "C" fn blosc_compress_ctx(
    clevel: c_int,
    doshuffle: c_int,
    typesize: usize,
    nbytes: usize,
    src: *const c_void,
    dest: *mut c_void,
    destsize: usize,
    compressor: *const c_char,
    blocksize: usize,
    numinternalthreads: c_int
) -> c_int

Context interface to blosc compression. This does not require a call to blosc_init() and can be called from multithreaded applications without the global lock being used, so allowing Blosc be executed simultaneously in those scenarios.

It uses the same parameters than the blosc_compress() function plus:

compressor: the string representing the type of compressor to use.

blocksize: the requested size of the compressed blocks. If 0, an automatic blocksize will be used.

numinternalthreads: the number of threads to use internally.

A negative return value means that an internal error happened. This should never happen. If you see this, please report it back together with the buffer data causing this and compression settings.