userver: userver/compression/zstd.hpp Source File
Loading...
Searching...
No Matches
zstd.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <string_view>
8
10
11USERVER_NAMESPACE_BEGIN
12
15
16extern const int kDefaultCompressionLevel;
17
21std::string Decompress(std::string_view compressed, size_t max_size);
22
24std::string Compress(std::string_view data, int compression_level = kDefaultCompressionLevel);
25
26} // namespace compression::zstd
27
28USERVER_NAMESPACE_END