From f2c34b1d2c18270a0327fb4896fa307fae098770 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Tue, 14 Jul 2026 17:29:02 +0200 Subject: Initial --- core/compress.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 core/compress.h (limited to 'core/compress.h') diff --git a/core/compress.h b/core/compress.h new file mode 100644 index 0000000..64d7dde --- /dev/null +++ b/core/compress.h @@ -0,0 +1,35 @@ +// file : core/compress.h +// project : Salis-VM +// author : Paul Oliver + +#pragma once + +// index: +// [section] structs +// [section] declarations + +// ---------------------------------------------------------------------------- +// [section] structs +// ---------------------------------------------------------------------------- +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; +}; + +// ---------------------------------------------------------------------------- +// [section] declarations +// ---------------------------------------------------------------------------- +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); -- cgit v1.3.1