Skip to main content

encode_with_block_size

Function encode_with_block_size 

Source
pub fn encode_with_block_size(
    data: &[u8],
    block_size: usize,
) -> Result<Vec<u8>, CodecError>
Expand description

Compress with a custom block size (useful for testing or tuning).

Inputs and framing fields are rejected with typed errors when they exceed the application or wire-format limits.