Sdk hash api documentation

Hash functions.

Include: #include <dmsdk/dlib/hash.h>
FUNCTIONS
uint64_t dmHashBuffer64(const void* buffer, uint32_t buffer_len) calculate 64-bit hash value from buffer
uint64_t dmHashString64(const char* string) calculate 64-bit hash value from string

Functions

dmHashBuffer64

uint64_t dmHashBuffer64(const void* buffer, uint32_t buffer_len)

calculate 64-bit hash value from buffer

PARAMETERS

const void* buffer Buffer
uint32_t buffer_len Length of buffer

RETURNS

uint64_t hash value

dmHashString64

uint64_t dmHashString64(const char* string)

calculate 64-bit hash value from string

PARAMETERS

const char* string Null terminated string

RETURNS

uint64_t hash value