Method Update
Update(void*, int)
Add some data to be hashed
Declaration
public void Update(void* input, int length)
Parameters
Type | Name | Description |
---|---|---|
void* | input | The memory buffer, can't be null |
int | length | The length of the data to accumulate, can be zero |
Remarks
This API allows you to feed very small data to be hashed, avoiding you to accumulate them in a big buffer, then computing the hash value from.
Update<T>(in T)
Add the contents of input struct to the hash.
Declaration
public void Update<T>(in T input) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T | input | The input struct that will be hashed |
Type Parameters
Name | Description |
---|---|
T | The input type. |
Remarks
This API allows you to feed very small data to be hashed, avoiding you to accumulate them in a big buffer, then computing the hash value from.