Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ca-checkpoint-compress.H File Reference

Internal compress / decompress helpers used by ca-checkpoint.H (Phase 17). More...

#include <cstddef>
#include <cstdint>
#include <vector>
Include dependency graph for ca-checkpoint-compress.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 
namespace  Aleph::CA
 
namespace  Aleph::CA::ca_checkpoint_detail
 

Functions

std::vector< std::uint8_t > Aleph::CA::ca_checkpoint_detail::deflate_bytes (const std::uint8_t *src, std::size_t len, int level)
 Compress a raw byte buffer with DEFLATE (miniz backend).
 
std::vector< std::uint8_t > Aleph::CA::ca_checkpoint_detail::inflate_bytes (const std::uint8_t *src, std::size_t len, std::size_t expected_uncompressed)
 Decompress a DEFLATE byte buffer back to its raw form.
 
std::vector< std::uint8_t > Aleph::CA::ca_checkpoint_detail::inflate_bytes_up_to (const std::uint8_t *src, std::size_t len, std::size_t max_uncompressed)
 Decompress a DEFLATE byte buffer with an upper bound.
 

Detailed Description

Internal compress / decompress helpers used by ca-checkpoint.H (Phase 17).

The vendored single-file DEFLATE implementation lives under third_party/miniz/. We keep its C symbols isolated to a dedicated translation unit (ca-checkpoint-compress.C) so downstream users of ca-checkpoint.H do not get the mz_* names dumped into their global namespace. This header exposes only a small, type-safe C++ surface.

Author
Leandro Rabindranath Leon

Definition in file ca-checkpoint-compress.H.