userver: userver/compression/zstd.hpp File Reference
Loading...
Searching...
No Matches
zstd.hpp File Reference

Detailed Description

Decompresses all Zstandard frames in the input, ignoring skippable frames.

Definition in file zstd.hpp.

Go to the source code of this file.

#include <string_view>
#include <userver/compression/error.hpp>

Namespaces

namespace  compression
 Compression and decompression utilities and errors.
namespace  compression::zstd
 Zstandard (de)compression helpers.

Functions

std::string compression::zstd::Decompress (std::string_view compressed, size_t max_size)
 Decompresses all Zstandard frames in the input, ignoring skippable frames.
std::string compression::zstd::Compress (std::string_view data, int compression_level=kDefaultCompressionLevel)
 Compresses the string using the specified compression level.

Variables

const int compression::zstd::kDefaultCompressionLevel