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

Incremental XXH32 accumulator for streamed LZ4 content checksums. More...

#include <lz4.hpp>

Public Member Functions

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

Detailed Description

Incremental XXH32 accumulator for streamed LZ4 content checksums.

Definition at line 103 of file lz4.hpp.

Member Function Documentation

◆ update()

void rpnx::compression::lz4_codec::xxhash32_accumulator::update ( std::byte value)
inlinenoexcept

Includes one byte in the hash.

Parameters
valueNext byte in stream order.

Definition at line 110 of file lz4.hpp.

References rpnx::compression::lz4_codec::read_word(), and value().

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

◆ value()

std::uint32_t rpnx::compression::lz4_codec::xxhash32_accumulator::value ( ) const
inlinenodiscardnoexcept

Returns the hash for all supplied bytes.

Returns
Finalized XXH32 value without changing accumulator state.

Definition at line 128 of file lz4.hpp.

References rpnx::compression::lz4_codec::read_word(), and rpnx::compression::lz4_codec::rotate_left().

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


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