23 lines
635 B
C
23 lines
635 B
C
|
|
#ifndef BLUELIB_COMPRESS_FUNCTION_H_
|
||
|
|
#define BLUELIB_COMPRESS_FUNCTION_H_
|
||
|
|
|
||
|
|
#include <blue/core/misc.h>
|
||
|
|
#include <blue/core/status.h>
|
||
|
|
|
||
|
|
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;
|
||
|
|
|
||
|
|
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_compressor_mode mode,
|
||
|
|
size_t *inbuf_size, size_t *outbuf_size);
|
||
|
|
|
||
|
|
#endif
|