RPNX::Compress
Self-contained C++20 compression and ZIP library
 
Loading...
Searching...
No Matches
rpnx::compression::implementation Namespace Reference

Internal primitives shared by the format-specific codecs. More...

Classes

class  adler32_accumulator
 Incremental Adler-32 accumulator. More...
 
class  byte_reader
 Single-pass byte reader over an input iterator and sentinel. More...
 
class  crc32_accumulator
 Incremental reflected IEEE CRC-32 accumulator. More...
 

Functions

template<typename value_type>
constexpr std::byte to_byte (value_type value) noexcept
 Converts one supported iterator value to std::byte.
 
template<typename output_iterator>
void write_byte (output_iterator &output, std::byte value)
 Writes one byte through an output iterator and advances it.
 

Detailed Description

Internal primitives shared by the format-specific codecs.

Function Documentation

◆ to_byte()

template<typename value_type>
std::byte rpnx::compression::implementation::to_byte ( value_type value)
nodiscardconstexprnoexcept

Converts one supported iterator value to std::byte.

Template Parameters
value_typestd::byte or a one-byte integral type.
Parameters
valueValue to convert without changing its bit pattern.
Returns
The corresponding byte value.

Definition at line 27 of file io.hpp.

Referenced by rpnx::compression::bzip2_codec::compress(), rpnx::compression::deflate_codec::compress(), rpnx::compression::lz4_codec::compress(), rpnx::compression::xz_codec::compress(), rpnx::compression::zstandard_codec::compress(), rpnx::compression::implementation::byte_reader< input_iterator, sentinel >::peek(), and rpnx::compression::implementation::byte_reader< input_iterator, sentinel >::read().

◆ write_byte()