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

Incremental CRC-64/XZ accumulator for streamed block data. More...

#include <xz.hpp>

Public Member Functions

void update (std::byte value) noexcept
 Includes one byte in the checksum.
 
std::uint64_t value () const noexcept
 Returns the checksum for all supplied bytes.
 

Detailed Description

Incremental CRC-64/XZ accumulator for streamed block data.

Definition at line 399 of file xz.hpp.

Member Function Documentation

◆ update()

void rpnx::compression::xz_codec::crc64_accumulator::update ( std::byte value)
inlinenoexcept

Includes one byte in the checksum.

Parameters
valueNext byte in stream order.

Definition at line 406 of file xz.hpp.

References value().

Referenced by rpnx::compression::xz_codec::compress(), and rpnx::compression::xz_codec::decompress().

◆ value()

std::uint64_t rpnx::compression::xz_codec::crc64_accumulator::value ( ) const
inlinenodiscardnoexcept

Returns the checksum for all supplied bytes.

Returns
Finalized CRC-64/XZ value.

Definition at line 419 of file xz.hpp.

Referenced by rpnx::compression::xz_codec::compress(), rpnx::compression::xz_codec::decompress(), and update().


The documentation for this class was generated from the following file: