39 const char **in,
size_t *in_len,
42 size_t n_to_copy = MIN(*in_len, *out_len);
44 memcpy(*out, *in, n_to_copy);
47 *out_len -= n_to_copy;
50 return finish ? TOR_COMPRESS_DONE : TOR_COMPRESS_OK;
52 return TOR_COMPRESS_BUFFER_FULL;
Macro definitions for MIN, MAX, and CLAMP.
tor_compress_output_t tor_cnone_compress_process(char **out, size_t *out_len, const char **in, size_t *in_len, int finish)
Header for compress_none.c.