aboutsummaryrefslogtreecommitdiff
path: root/data/compress.c
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-04-14 23:31:04 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-04-14 23:31:04 +0200
commit9d08b9e61d48803d9c54a6921d573f974441ac42 (patch)
tree5a24e494da413d6e0931543d32f44db57c0f3ebf /data/compress.c
parent1fde30da093ecea7e32d39e5446fbde4d1fabd27 (diff)
Reorganizes C source files
Diffstat (limited to 'data/compress.c')
-rw-r--r--data/compress.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/data/compress.c b/data/compress.c
deleted file mode 100644
index df61123..0000000
--- a/data/compress.c
+++ /dev/null
@@ -1,56 +0,0 @@
-void salis_deflate(z_stream *strm, size_t size, Bytef *in, Bytef *out) {
- assert(strm);
- assert(size);
- assert(in);
- assert(out);
-
- strm->zalloc = NULL;
- strm->zfree = NULL;
- strm->opaque = NULL;
-
- deflateInit(strm, Z_DEFAULT_COMPRESSION);
-
- strm->avail_in = size;
- strm->avail_out = size;
- strm->next_in = in;
- strm->next_out = out;
-
- deflate(strm, Z_FINISH);
-}
-
-void salis_deflate_end(z_stream *strm) {
- assert(strm);
-
- deflateEnd(strm);
-}
-
-void salis_inflate(z_stream *strm, size_t avail_in, size_t size, Bytef *in, Bytef *out) {
- assert(strm);
- assert(avail_in);
- assert(size);
- assert(in);
- assert(out);
-
- strm->next_in = in;
- strm->avail_in = avail_in;
- strm->zalloc = NULL;
- strm->zfree = NULL;
- strm->opaque = NULL;
-
- inflateInit(strm);
-
- strm->avail_out = size;
- strm->next_out = out;
-
-#if defined(NDEBUG)
- inflate(strm, Z_FINISH);
-#else
- assert(inflate(strm, Z_FINISH));
-#endif
-}
-
-void salis_inflate_end(z_stream *strm) {
- assert(strm);
-
- inflateEnd(strm);
-}