Zstandard (de)compression helpers.
Functions | |
| std::string | Decompress (std::string_view compressed, size_t max_size) |
| Decompresses all Zstandard frames in the input, ignoring skippable frames. | |
| std::string | Compress (std::string_view data, int compression_level=kDefaultCompressionLevel) |
| Compresses the string using the specified compression level. | |
Variables | |
| const int | kDefaultCompressionLevel |
| std::string compression::zstd::Decompress | ( | std::string_view | compressed, |
| size_t | max_size ) |
Decompresses all Zstandard frames in the input, ignoring skippable frames.
| std::runtime_error | if the input is invalid or truncated. |
| compression::TooBigError | if the combined output exceeds max_size. |