class PiecewiseCombiner

Defined at line 104 of file ../../third_party/abseil-cpp/absl/hash/internal/hash.h

PiecewiseCombiner

PiecewiseCombiner is an internal-only helper class for hashing a piecewise

buffer of `char` or `unsigned char` as though it were contiguous. This class

provides two methods:

H add_buffer(state, data, size)

H finalize(state)

`add_buffer` can be called zero or more times, followed by a single call to

`finalize`. This will produce the same hash expansion as concatenating each

buffer piece into a single contiguous buffer, and passing this to

`H::combine_contiguous`.

Example usage:

PiecewiseCombiner combiner;

for (const auto

&

piece : pieces) {

state = combiner.add_buffer(std::move(state), piece.data, piece.size);

}

return combiner.finalize(std::move(state));

Public Methods

void PiecewiseCombiner ()

Defined at line 106 of file ../../third_party/abseil-cpp/absl/hash/internal/hash.h

void PiecewiseCombiner (const PiecewiseCombiner & )

Defined at line 107 of file ../../third_party/abseil-cpp/absl/hash/internal/hash.h

PiecewiseCombiner & operator= (const PiecewiseCombiner & )

Defined at line 108 of file ../../third_party/abseil-cpp/absl/hash/internal/hash.h

template <typename H>
H add_buffer (H state, const char * data, size_t size)

Defined at line 117 of file ../../third_party/abseil-cpp/absl/hash/internal/hash.h

template <typename H>
H add_buffer (H state, const unsigned char * data, size_t size)

HashStateBase::PiecewiseCombiner::add_buffer()

Defined at line 1333 of file ../../third_party/abseil-cpp/absl/hash/internal/hash.h

template <typename H>
H finalize (H state)

HashStateBase::PiecewiseCombiner::finalize()

Defined at line 1366 of file ../../third_party/abseil-cpp/absl/hash/internal/hash.h