pub fn compress<T: ZfpCompressible, D: Dimension>(
data: ArrayView<'_, T, D>,
mode: &ZfpCompressionMode,
) -> Result<Vec<u8>, ZfpClassicCodecError>
Expand description
Compress the data
array using ZFP with the provided mode
.
ยงErrors
Errors with
ZfpClassicCodecError::ExcessiveDimensionality
if data is more than 4-dimensionalZfpClassicCodecError::InvalidExpertMode
if themode
has invalid expert mode parametersZfpClassicCodecError::HeaderEncodeFailed
if encoding the ZFP header failedZfpClassicCodecError::MetaHeaderEncodeFailed
if encoding the array metadata header failedZfpClassicCodecError::ZfpEncodeFailed
if an opaque encoding error occurred