|
aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <XXHash.h>
Public Member Functions | |
| XXHash (const XXHash &)=delete | |
| XXHash & | operator= (const XXHash &)=delete |
| XXHash (XXHash &&toMove) noexcept=default | |
| XXHash & | operator= (XXHash &&toMove) noexcept=default |
| int | LastError () const noexcept |
| bool | Update (const ByteCursor &toHash) noexcept |
| bool | Digest (ByteBuf &output) noexcept |
Static Public Member Functions | |
| static XXHash | CreateXXHash64 (uint64_t seed=0, Allocator *allocator=ApiAllocator()) noexcept |
| static XXHash | CreateXXHash3_64 (uint64_t seed=0, Allocator *allocator=ApiAllocator()) noexcept |
| static XXHash | CreateXXHash3_128 (uint64_t seed=0, Allocator *allocator=ApiAllocator()) noexcept |
Streaming Hash object. The typical use case is for computing the hash of an object that is too large to load into memory. You can call Update() multiple times as you load chunks of data into memory. When you're finished simply call Digest(). After Digest() is called, this object is no longer usable.
|
defaultnoexcept |
|
staticnoexcept |
Creates an instance of a Streaming XXHash3_128 Hash.
|
staticnoexcept |
Creates an instance of a Streaming XXHash3_64 Hash.
|
staticnoexcept |
Creates an instance of a Streaming XXHash64 Hash.
Finishes the running hash operation and writes the digest into output. Returns true on success. Call LastError() for the reason this call failed.
|
inlinenoexcept |
Returns the value of the last aws error encountered by operations on this instance.
|
noexcept |
Updates the running hash object with data in toHash. Returns true on success. Call LastError() for the reason this call failed.