diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-07-14 17:29:02 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-08-30 16:24:48 +0200 |
| commit | 1961b4b237083f4cfac9ca6b249c1d6cb665d149 (patch) | |
| tree | fd9fc8260360e2ac30be9747ca558bcfc824a4c4 /core/compress.h | |
Diffstat (limited to 'core/compress.h')
| -rw-r--r-- | core/compress.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/core/compress.h b/core/compress.h new file mode 100644 index 0000000..4431eed --- /dev/null +++ b/core/compress.h @@ -0,0 +1,27 @@ +// file : core/compress.h +// project : Salis-VM +// author : Paul Oliver <contact@pauloliver.dev> +// +// Utilities to help with zlib compression. + +#pragma once + +struct DeflateParams { + z_stream strm; + size_t size; + Bytef *in; + Bytef *out; +}; + +struct InflateParams { + z_stream strm; + size_t avail_in; + size_t size; + Bytef *in; + Bytef *out; +}; + +int comp_deflate(struct DeflateParams *params); +int comp_inflate(struct InflateParams *params); +void comp_deflate_end(struct DeflateParams *params); +void comp_inflate_end(struct InflateParams *params); |
