sparrow-ipc 0.2.0
Loading...
Searching...
No Matches
compression.hpp File Reference
#include <cstdint>
#include <memory>
#include <optional>
#include <span>
#include <variant>
#include <vector>
#include "sparrow_ipc/config/config.hpp"
Include dependency graph for compression.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sparrow_ipc::CompressionCache
 

Namespaces

namespace  sparrow_ipc
 

Enumerations

enum class  sparrow_ipc::CompressionType : std::uint8_t { sparrow_ipc::LZ4_FRAME , sparrow_ipc::ZSTD }
 

Functions

SPARROW_IPC_API std::span< const std::uint8_t > sparrow_ipc::compress (const CompressionType compression_type, const std::span< const std::uint8_t > &data, CompressionCache &cache)
 
SPARROW_IPC_API size_t sparrow_ipc::get_compressed_size (const CompressionType compression_type, const std::span< const std::uint8_t > &data, CompressionCache &cache)
 
SPARROW_IPC_API std::variant< std::vector< std::uint8_t >, std::span< const std::uint8_t > > sparrow_ipc::decompress (const CompressionType compression_type, std::span< const std::uint8_t > data)