0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/util/compress.h

22 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);
}