meta: add compress module for (de)compressing data

This commit is contained in:
2025-07-28 22:27:24 +01:00
parent 65ee2a91b8
commit 56399b07d8
14 changed files with 610 additions and 1 deletions

22
compress/compressor.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef _COMPRESSOR_H_
#define _COMPRESSOR_H_
#include <blue/compress/compressor.h>
struct b_compression_function;
struct b_ringbuffer;
enum compressor_flags {
COMPRESSOR_EOF = 0x01u,
};
struct b_compressor {
enum compressor_flags c_flags;
enum b_compressor_mode c_mode;
const struct b_compression_function *c_func;
struct b_ringbuffer *c_in, *c_out;
};
extern void *b_compressor_get_function_ctx(struct b_compressor *compressor);
#endif