// 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);