compress_rate_bytes

Function compress_rate_bytes 

Source
pub fn compress_rate_bytes(
    data: &[u8],
    rate_backend: &RateBackend,
    max_order: i64,
    coder: CoderType,
    framing: FramingMode,
) -> Result<Vec<u8>>
Expand description

Compress bytes using a predictive rate backend and entropy coder.

When framing is FramingMode::Framed, output includes a compact header with payload metadata and CRC for safer transport/storage.