pub fn compress<T: QpetSperrElement, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
mode: &QpetSperrCompressionMode,
) -> Result<Vec<u8>, QpetSperrCodecError>Expand description
Compress the data array using QPET-SPERR with the provided mode.
The compressed data can be decompressed using SPERR or QPET-SPERR.
ยงErrors
Errors with
QpetSperrCodecError::HeaderEncodeFailedif encoding the header failedQpetSperrCodecError::QpetSperrEncodeFailedif encoding with QPET-SPERR failedQpetSperrCodecError::SliceEncodeFailedif encoding a slice failed