Expand description
High-level SZ3 compression API for Tensogram.
This crate provides the same public API surface as the published sz3
crate (v0.4.3), but is a clean-room implementation backed by
tensogram-sz3-sys instead of sz3-sys.
Structs§
- Config
- Full configuration for an SZ3 compress/decompress round-trip.
- Dimensioned
Data - A data buffer together with its N-dimensional shape, ready for SZ3 compression or decompression.
- Dimensioned
Data Builder - Builder for an immutable
DimensionedDatareference. - Dimensioned
Data Builder Mut - Builder for a mutable
DimensionedDatareference.
Enums§
- Compression
Algorithm - Which prediction algorithm SZ3 should use during compression.
- Error
Bound - Error-bound mode that controls how much distortion SZ3 is allowed to introduce during lossy compression.
- SZ3Error
- Errors returned by the SZ3 compression and dimension-building APIs.
Traits§
- SZ3Compressible
- Marker trait for types that SZ3 can compress and decompress.
Functions§
- compress
- Compress
datawith the given error bound, returning a newVec<u8>. - compress_
into - Compress
dataand append the result tocompressed_data. - compress_
into_ with_ config - Compress
datawith a fullConfigand append the result tocompressed_data. - compress_
with_ config - Compress
datawith a fullConfig, returning a newVec<u8>. - decompress
- Decompress an SZ3 blob into a new
Vec<V>, returning the recoveredConfigandDimensionedData. - decompress_
into_ dimensioned - Decompress an SZ3 blob into a pre-allocated
DimensionedDatabuffer.