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

Incremental XXH64 accumulator for streamed Zstandard checksums. More...

#include <zstandard.hpp>

Public Member Functions

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

Detailed Description

Incremental XXH64 accumulator for streamed Zstandard checksums.

Definition at line 375 of file zstandard.hpp.

Member Function Documentation

◆ update()

void rpnx::compression::zstandard_codec::xxhash64_accumulator::update ( std::byte value)
inlinenoexcept

Includes one byte in the hash.

Parameters
valueNext byte in stream order.

Definition at line 382 of file zstandard.hpp.

References rpnx::compression::zstandard_codec::read_word64(), and value().

Referenced by rpnx::compression::zstandard_codec::decompress().

◆ value()

std::uint64_t rpnx::compression::zstandard_codec::xxhash64_accumulator::value ( ) const
inlinenodiscardnoexcept

Returns the hash for all supplied bytes.

Returns
Finalized XXH64 value without changing accumulator state.

Definition at line 400 of file zstandard.hpp.

References rpnx::compression::zstandard_codec::read_word32(), rpnx::compression::zstandard_codec::read_word64(), and rpnx::compression::zstandard_codec::rotate_left().

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


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