pub fn compress<T: PcoElement, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
level: PcoCompressionLevel,
mode: PcoModeSpec,
delta: PcoDeltaSpec,
paging: PcoPagingSpec,
) -> Result<Vec<u8>, PcodecError>Expand description
Compresses the input data array using pco with the given compression
level, mode, delta encoding, and paging mode.
ยงErrors
Errors with
PcodecError::HeaderEncodeFailedif encoding the header failedPcodecError::PcoEncodeFailedif encoding failed with an opaque error