blosc-rs
Rust bindings for blosc - a blocking, shuffling and lossless compression library.
Provide a safe interface to the blosc library. The crate has zero runtime dependencies.
Getting Started
To use this library, add the following to your Cargo.toml:
[]
= "0.1"
# Or alternatively, rename the crate to `blosc`
= { = "blosc-rs", = "0.1" }
In the following example we compress a vector of integers and then decompress it back:
use ;
let data: = ;
let data_bytes = unsafe ;
let numinternalthreads = 4;
let compressed = compress
.unwrap;
let decompressed = decompress.unwrap;
// SAFETY: we know the data is of type i32
let decompressed: & = unsafe ;
assert_eq!;