|
ZXC 0.15.0
High-performance asymmetric lossless compression library
|
Shared option structures for the ZXC compression APIs. More...
Go to the source code of this file.
Data Structures | |
| struct | zxc_compress_opts_t |
| Options for compression. More... | |
| struct | zxc_decompress_opts_t |
| Options for decompression. More... | |
Typedefs | |
| typedef void(* | zxc_progress_callback_t) (uint64_t bytes_processed, uint64_t bytes_total, const void *user_data) |
| Progress callback function type. | |
Functions | |
| size_t | zxc_compress_opts_size (void) |
Returns sizeof(zxc_compress_opts_t) as compiled into the library. | |
| size_t | zxc_decompress_opts_size (void) |
Returns sizeof(zxc_decompress_opts_t) as compiled into the library. | |
Shared option structures for the ZXC compression APIs.
zxc_compress_opts_t, zxc_decompress_opts_t and zxc_progress_callback_t, shared by every public ZXC API (one-shot buffer, multi-threaded FILE* streaming, push streaming, seekable).
No need to include it directly: the API header you actually use (zxc_buffer.h, zxc_stream.h, zxc_pstream.h, ...) pulls it in.
Definition in file zxc_opts.h.
| typedef void(* zxc_progress_callback_t) (uint64_t bytes_processed, uint64_t bytes_total, const void *user_data) |
Progress callback function type.
Called from the writer thread after each block, or batch of blocks, is processed.
| [in] | bytes_processed | Input bytes processed so far. |
| [in] | bytes_total | Total input bytes to process (0 if unknown, e.g. stdin). |
| [in] | user_data | Context pointer passed through from the API call. |
Definition at line 43 of file zxc_opts.h.
| size_t zxc_compress_opts_size | ( | void | ) |
Returns sizeof(zxc_compress_opts_t) as compiled into the library.
Layout guard for bindings that mirror the options structs by hand (raw FFI declarations, byte-offset serialization) instead of compiling against this header. Comparing the mirrored size against this at load time turns a silent layout drift, i.e. undefined behaviour, into an explicit error.
Returns sizeof(zxc_compress_opts_t) as compiled into the library.
Public API; see zxc_buffer.h. Lets callers (other languages, or a different library version) size the options struct without knowing its layout.
Definition at line 33 of file zxc_common.c.
| size_t zxc_decompress_opts_size | ( | void | ) |
Returns sizeof(zxc_decompress_opts_t) as compiled into the library.
Returns sizeof(zxc_decompress_opts_t) as compiled into the library.
Public API; see zxc_buffer.h. Lets callers (other languages, or a different library version) size the options struct without knowing its layout.
Definition at line 43 of file zxc_common.c.