std::compress::zlib¶
Status: experimental
zlib (RFC 1950) encoder / decoder.
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 zlib compress. |
decompress |
fn decompress(data: Vec<u8>) -> Result<Vec<u8>, errors::Error> |
One-shot zlib decompress. |