9 size_t compressed_message_length;
10 char* compressed_message = (
char*)tdefl_compress_mem_to_heap(in.c_str(), in.size(), &compressed_message_length, TDEFL_WRITE_ZLIB_HEADER | TDEFL_DEFAULT_MAX_PROBES);
11 std::string result(compressed_message, compressed_message_length);
12 free(compressed_message);
std::string zlib_compress(const std::string &in)