SLikeNet
0.1.3
|
#include "slikenet/SuperFastHash.h"
#include "slikenet/NativeTypes.h"
#include <stdlib.h>
#include <stdint.h>
#include "slikenet/linux_adapter.h"
#include "slikenet/osx_adapter.h"
Go to the source code of this file.
Macros | |
#define | get16bits(d) |
Functions | |
uint32_t | SuperFastHash (const char *data, int length) |
uint32_t | SuperFastHashIncremental (const char *data, int len, unsigned int lastHash) |
uint32_t | SuperFastHashFile (const char *filename) |
uint32_t | SuperFastHashFilePtr (FILE *fp) |
Variables | |
static const int | INCREMENTAL_READ_BLOCK =65536 |
#define get16bits | ( | d | ) |
Definition at line 32 of file SuperFastHash.cpp.
Referenced by SuperFastHashIncremental().
uint32_t SuperFastHash | ( | const char * | data, |
int | length | ||
) |
Definition at line 38 of file SuperFastHash.cpp.
References INCREMENTAL_READ_BLOCK, and SuperFastHashIncremental().
uint32_t SuperFastHashFile | ( | const char * | filename | ) |
Definition at line 106 of file SuperFastHash.cpp.
References SuperFastHashFilePtr().
uint32_t SuperFastHashFilePtr | ( | FILE * | fp | ) |
Definition at line 116 of file SuperFastHash.cpp.
References INCREMENTAL_READ_BLOCK, and SuperFastHashIncremental().
Referenced by SuperFastHashFile().
uint32_t SuperFastHashIncremental | ( | const char * | data, |
int | len, | ||
unsigned int | lastHash | ||
) |
Definition at line 58 of file SuperFastHash.cpp.
References get16bits.
Referenced by SuperFastHash(), SuperFastHashFilePtr(), and SLNet::SystemAddress::ToInteger().
|
static |
Definition at line 36 of file SuperFastHash.cpp.
Referenced by SuperFastHash(), and SuperFastHashFilePtr().