LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
CompressionUtils.hpp File Reference

Shared gzip/zstd compression helpers used by OTLP and MDBX backends. More...

#include <cstddef>
#include <string>

Go to the source code of this file.

Namespaces

namespace  logit
 The primary namespace for the LogIt++ library.
 
namespace  logit::detail
 

Macros

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONUTILS_HPP_INCLUDED
 

Functions

bool logit::detail::compress_string_gzip (const std::string &input, std::string &output, int level)
 Compress a string with gzip.
 
bool logit::detail::decompress_string_gzip (const std::string &input, std::string &output)
 Decompress gzip-compressed bytes.
 
bool logit::detail::compress_string_zstd (const std::string &input, std::string &output, int level)
 Compress a string with zstd.
 
bool logit::detail::decompress_string_zstd (const std::string &input, std::string &output)
 Decompress zstd-compressed bytes.
 

Detailed Description

Shared gzip/zstd compression helpers used by OTLP and MDBX backends.

Definition in file CompressionUtils.hpp.

Macro Definition Documentation

◆ LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONUTILS_HPP_INCLUDED

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_COMPRESSIONUTILS_HPP_INCLUDED

Definition at line 3 of file CompressionUtils.hpp.