Skip to content

std::compress::bzip2

Status: experimental

bzip2 encoder / decoder (BZh format).

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
compress fn compress(data: Vec<u8>, level: i64) -> Result<Vec<u8>, errors::Error> One-shot bzip2 compress.
decompress fn decompress(data: Vec<u8>) -> Result<Vec<u8>, errors::Error> One-shot bzip2 decompress.