OECompressΒΆ

bool OECompress(std::string &dst, const std::string &src, const char *fmt="gz")
bool OECompress(std::string &dst, const char *src, size_t size, const char *fmt="gz")

Compresses the data in the original data buffer, src, using the specified compression format, fmt, and stores the compressed data in the compressed string dst. Returns whether or not the specified compression format was available and if the data was successfully compressed using that format.