#ifndef BLUELIB_COMPRESS_FUNCTION_H_ #define BLUELIB_COMPRESS_FUNCTION_H_ #include #include enum b_compressor_mode; typedef struct b_compression_function b_compression_function; typedef enum b_compression_function_id { B_COMPRESSOR_FUNCTION_NONE = 0, B_COMPRESSOR_FUNCTION_ZSTD, } b_compression_function_id; typedef enum b_compression_mode { B_COMPRESSION_MODE_COMPRESS, B_COMPRESSION_MODE_DECOMPRESS, } b_compression_mode; BLUE_API const b_compression_function *b_compression_function_get_by_id( b_compression_function_id id); BLUE_API b_status b_compression_function_get_buffer_size( const b_compression_function *func, enum b_compression_mode mode, size_t *inbuf_size, size_t *outbuf_size); #endif