vg
tools for working with variation graphs
Loading...
Searching...
No Matches
zstdutil.hpp File Reference
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <zstd.h>

Classes

class  vg::zstd_compress_buf
 Zstandard compression buffer that writes to another stream buffer. More...
class  vg::zstd_decompress_buf
 Zstandard decompression buffer that reads from another stream buffer. More...
class  vg::zstd_ofstream
class  vg::zstd_ifstream

Namespaces

namespace  vg
namespace  zstdutil

Functions

int zstdutil::CompressString (const std::string &src, std::string &dst, int compressionlevel)
int zstdutil::DecompressString (const std::string &src, std::string &dst)
int zstdutil::StreamDecompressString (const std::string &src, std::string &dst, int compressionlevel)
int zstdutil::StreamCompressString (const std::string &src, std::string &dst, int compressionlevel)

Variables

const int zstdutil::DEFAULTCOMPRESSLEVEL = 5

Detailed Description

Wrappers for Zstandard compression and decompression.

TODO: Override xsputn, xsgetn for faster compression? TODO: Move constructors for streams? TODO: is_open(), close() for streams?