// @file compress.h #pragma once #include namespace mongo { size_t compress(const char* input, size_t input_length, std::string* output); bool uncompress(const char* compressed, size_t compressed_length, std::string* uncompressed); size_t maxCompressedLength(size_t source_len); void rawCompress(const char* input, size_t input_length, char* compressed, size_t* compressed_length); }