Constructor StreamingState
StreamingState(bool, ulong)
Create a StreamingState object, ready to be used with the streaming API
Declaration
public StreamingState(bool isHash64, ulong seed = 0)
Parameters
Type | Name | Description |
---|---|---|
bool | isHash64 | true if we are computing a 64bits hash value, false if we are computing a 128bits one |
ulong | seed | A seed value to be used to compute the hash, default is 0 |
Remarks
Once the object is constructed, you can call the Update(void*, int) method as many times as you want to accumulate data to hash. When all the data has been sent, call DigestHash64() or DigestHash128() to retrieve the corresponding key, the xxHash3.StreamingState instance will then be reset, using the same hash key size and same Seed in order to be ready to be used again.