Skip to main content

Crate tensogram_sz3

Crate tensogram_sz3 

Source
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.
DimensionedData
A data buffer together with its N-dimensional shape, ready for SZ3 compression or decompression.
DimensionedDataBuilder
Builder for an immutable DimensionedData reference.
DimensionedDataBuilderMut
Builder for a mutable DimensionedData reference.

Enums§

CompressionAlgorithm
Which prediction algorithm SZ3 should use during compression.
ErrorBound
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 data with the given error bound, returning a new Vec<u8>.
compress_into
Compress data and append the result to compressed_data.
compress_into_with_config
Compress data with a full Config and append the result to compressed_data.
compress_with_config
Compress data with a full Config, returning a new Vec<u8>.
decompress
Decompress an SZ3 blob into a new Vec<V>, returning the recovered Config and DimensionedData.
decompress_into_dimensioned
Decompress an SZ3 blob into a pre-allocated DimensionedData buffer.