Skip to main content

Crate tensogram_sz3_sys

Crate tensogram_sz3_sys 

Source
Expand description

Clean-room FFI bindings for the SZ3 lossy compression library.

This crate provides low-level C FFI bindings to the SZ3 header-only C++ library via a thin C++ shim (cpp/sz3_ffi.cpp).

Modules§

SZ3
SZ3 algorithm and error-bound mode constants.
impl_f32
impl_f64
impl_i8
impl_i16
impl_i32
impl_i64
impl_u8
impl_u16
impl_u32
impl_u64

Structs§

SZ3_Config
Flat C-compatible configuration struct mirroring the SZ3 C++ Config class.

Functions§

sz3_dealloc_size_t
Free a size_t[] pointer that was allocated on the C++ side (e.g. the dims field of SZ3_Config).
sz3_decompress_config
Parse a compressed SZ3 blob and return its configuration without decompressing the payload. The returned SZ3_Config::dims pointer is heap-allocated; free it with sz3_dealloc_size_t.