xuqinhaow / zstd_util

support c++ string, zstd compress,decompress, stream compress, stream decompress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zstd_util

support c++ string, zstd compress,decompress, stream compress, stream decompress

zstd https://github.com/facebook/zstd

// if return code not 0 is error
static int CompressString(const std::string& src, std::string& dst, int compressionlevel = DEFAULTCOMPRESSLEVEL);

// if return code not 0 is error
static int DecompressString(const std::string& src, std::string& dst);

// if return code not 0 is error
static int StreamDecompressString(const string& src, string& dst, int compressionlevel = DEFAULTCOMPRESSLEVEL);

// if return code not 0 is error
static int StreamCompressString(const std::string& src, std::string& dst, int compressionlevel = DEFAULTCOMPRESSLEVEL);

About

support c++ string, zstd compress,decompress, stream compress, stream decompress

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%