11 #ifndef TOR_COMPRESS_ZSTD_H
12 #define TOR_COMPRESS_ZSTD_H
32 char **out,
size_t *out_len,
33 const char **in,
size_t *in_len,
37 #define tor_zstd_compress_free(st) \
38 FREE_AND_NULL(tor_zstd_compress_state_t, \
39 tor_zstd_compress_free_, (st))
49 void tor_zstd_set_static_apis_disabled_for_testing(
int disabled);
void tor_zstd_compress_free_(tor_zstd_compress_state_t *state)
int tor_zstd_method_supported(void)
int tor_zstd_can_use_static_apis(void)
tor_compress_output_t tor_zstd_compress_process(tor_zstd_compress_state_t *state, char **out, size_t *out_len, const char **in, size_t *in_len, int finish)
const char * tor_zstd_get_version_str(void)
size_t tor_zstd_get_total_allocation(void)
const char * tor_zstd_get_header_version_str(void)
size_t tor_zstd_compress_state_size(const tor_zstd_compress_state_t *state)
void tor_zstd_warn_if_version_mismatched(void)
tor_zstd_compress_state_t * tor_zstd_compress_new(int compress, compress_method_t method, compression_level_t compression_level)