libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Go to the source code of this file.
Macros | |
#define | gblHash |
Functions | |
uint16_t | gblHashCrc16BitPartial (const void *pData, size_t size, uint16_t *pPartial) |
Fixed data sizes | |
Methods for calculating the hash of primitive types | |
GblHash | gblHash32Bit (uint32_t value) |
uint32_t | gblUnhash32Bit (GblHash hash) |
GblHash | gblHash16Bit (uint16_t value) |
Arbitrarily-sized data | |
Methods for calculating the hash of generic buffers | |
GblHash | gblHashSip (const void *pData, size_t size) |
GblHash | gblHashMurmur (const void *pData, size_t size) |
GblHash | gblHashFnv1 (const void *pData, size_t size) |
GblHash | gblHashXx (const void *pData, size_t size) |
GblHash | gblHashSuperFast (const void *pData, size_t size) |
GblHash | gblHashPearson (const void *pData, size_t size) |
GblHash | gblHashJenkins (const void *pData, size_t size) |
GblHash | gblHashCrc (const void *pData, size_t size) |
GblHash | gblHashSha1 (const void *pData, size_t size) |
GblHash | gblHashMd5 (const void *pData, size_t size) |
Collection of hashing algorithms.
This file contains the hashing API, which is a collection of various hashing algorithms for calculating the hashes of either arbitrary buffers of data or primitive types of specific sizes.
Definition in file gimbal_hash.h.
#define gblHash |
Default hashing algorithm used internally by libGimbal.
Definition at line 27 of file gimbal_hash.h.
GblHash gblHash32Bit | ( | uint32_t | value | ) |
Calculate the hash of a given 32-bit value.
uint32_t gblUnhash32Bit | ( | GblHash | hash | ) |
Retrieve original 32-bit value from its hash.
GblHash gblHash16Bit | ( | uint16_t | value | ) |
Calculate the hash of the given 16-bit value.
uint16_t gblHashCrc16BitPartial | ( | const void * | pData, |
size_t | size, | ||
uint16_t * | pPartial | ||
) |
Calculates the hash of a given buffer continuing the partial hash from a previous iteration (or taking NULL for none)
GblHash gblHashSip | ( | const void * | pData, |
size_t | size | ||
) |
Returns the hash of the given data buffer, calculated using the SIP algorithm.
GblHash gblHashMurmur | ( | const void * | pData, |
size_t | size | ||
) |
Returns the hash of the given data buffer, calculated using the MurmurHash32 algorithm.
GblHash gblHashFnv1 | ( | const void * | pData, |
size_t | size | ||
) |
Returns the hash of the given data buffer, calculated using the a custom FNV1 algorithm.
GblHash gblHashXx | ( | const void * | pData, |
size_t | size | ||
) |
Returns the hash of the given data buffer, calculated using the xxHash algorithm.
GblHash gblHashSuperFast | ( | const void * | pData, |
size_t | size | ||
) |
Returns the hash of the given data buffer, calculated using the SuperFastHash algorithm.
GblHash gblHashPearson | ( | const void * | pData, |
size_t | size | ||
) |
Returns the hash of the given data buffer, calculated using the Pearson hashing algorithm.
GblHash gblHashJenkins | ( | const void * | pData, |
size_t | size | ||
) |
Returns the hash of the given data buffer, calculated using the Jenkins hashing algorithm.
GblHash gblHashCrc | ( | const void * | pData, |
size_t | size | ||
) |
Returns the CRC value of the given data buffer.
GblHash gblHashSha1 | ( | const void * | pData, |
size_t | size | ||
) |
Returns the SHA1 hash calculated for the given data buffer.
GblHash gblHashMd5 | ( | const void * | pData, |
size_t | size | ||
) |
Returns the MD5 hash calculated for the given data buffer.