SemysHash*DataAdd

01 Hashes a memory block and returns the hash value, continuing from a previous hash value.
02

uint32 SemysHash32DataAdd(byte const *pData, uint32 size, uint32 hash);
uint64 SemysHash64DataAdd(byte const *pData, uint32 size, uint64 hash);
size_t SemysHashTDataAdd(byte const *pData, uint32 size, size_t hash);

03 Parameters:
  • pData: The pointer to the data to hash.
  • size: The amount of bytes to use for the algorithm (size of pData).
  • hash: A previous hash value to start from.
04 Return Values:
The generated hash values.
05 Two variants exist: one for 32bit and one for 64bit hash values.
06 These functions exist to be able to create hash values from several sources.
The hash value returned from one of the hash functions can be used as an input parameter to the corresponding Add function.
07 SemysHashTDataAdd is actually a (const) pointer to one of the other two functions according to sizeof(size_t). If it is 8, the 64bit variant will be used, otherwise the 32bit variant.
08 Reference: SemysHash.h
Implementation: Semys Library
See Also: Hash Sub-System, SemysHash*Data()

Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details.