numcodecs_zstd

Function compress

Source
pub fn compress(
    array: AnyArrayView<'_>,
    level: ZstdLevel,
) -> Result<Vec<u8>, ZstdCodecError>
Expand description

Compress the array using Zstandard with the provided level.

§Errors

Errors with

§Panics

Panics if the infallible encoding with Zstd fails.