Crate minilzo [−] [src]
LZO is a compression library with focus on decompression speed. minilzo is a lightweight subset of the full LZO library.
It is available online.
This rust library is a wrapper around the minilzo library and is fully compatible with LZO/minilzo compressed data.
Basic Operation
let data = b"foobar"; let compressed = minilzo::compress(&data[..]).unwrap(); let decompressed = minilzo::decompress(&compressed, data.len()).unwrap();
Enums
Error |
Errors of Compression or Decompression |
Functions
compress |
Compress the given data, if possible. An error will be returned if compression fails. |
decompress |
Decompress the given data, if possible. An error will be returned if decompression fails. |