MongoDB  2.7.0
compress.h
1 // @file compress.h
2 
31 #pragma once
32 
33 #include <string>
34 
35 namespace mongo {
36 
37  size_t compress(const char* input, size_t input_length, std::string* output);
38 
39  bool uncompress(const char* compressed, size_t compressed_length, std::string* uncompressed);
40 
41  size_t maxCompressedLength(size_t source_len);
42  void rawCompress(const char* input,
43  size_t input_length,
44  char* compressed,
45  size_t* compressed_length);
46 
47 }
48 
49