pub fn compress<T: SperrElement, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
mode: &SperrCompressionMode,
) -> Result<Vec<u8>, SperrCodecError>
Expand description
Compress the data
array using SPERR with the provided mode
.
ยงErrors
Errors with
SperrCodecError::HeaderEncodeFailed
if encoding the header failedSperrCodecError::SperrEncodeFailed
if encoding with SPERR failedSperrCodecError::SliceEncodeFailed
if encoding a slice failed