mongo-debian/util/compress.h
2011-09-14 17:08:06 +02:00

21 lines
443 B
C++

// @file compress.h
#pragma once
#include <string>
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);
}