mtcute/packages/wasm/lib/libdeflate/deflate_compress.h

21 lines
651 B
C
Raw Normal View History

2023-11-04 06:44:18 +03:00
#ifndef LIB_DEFLATE_COMPRESS_H
#define LIB_DEFLATE_COMPRESS_H
#include "lib_common.h"
/*
* DEFLATE compression is private to deflate_compress.c, but we do need to be
* able to query the compression level for zlib and gzip header generation.
*/
struct libdeflate_compressor;
unsigned int libdeflate_get_compression_level(struct libdeflate_compressor *c);
size_t libdeflate_deflate_compress(struct libdeflate_compressor *c,
const void *in, size_t in_nbytes,
void *out, size_t out_nbytes_avail);
size_t libdeflate_deflate_compress_bound(struct libdeflate_compressor *c, size_t in_nbytes);
#endif /* LIB_DEFLATE_COMPRESS_H */