Function blosc_sys::blosc_set_compressor[][src]

pub unsafe extern "C" fn blosc_set_compressor(compname: *const c_char) -> c_int

Select the compressor to be used. The supported ones are "blosclz", "lz4", "lz4hc", "snappy", "zlib" and "ztsd". If this function is not called, then "blosclz" will be used by default.

In case the compressor is not recognized, or there is not support for it in this build, it returns a -1. Else it returns the code for the compressor (>=0).