Skip to content

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

License

Notifications You must be signed in to change notification settings

hashyong/zstd_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages