mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Added all raknet headers for full raknet support Added Testclass "TestCB.cpp" which is a test implementation for raknet plugin "File List Transfer". We will use this plugin for file transfer in multiplayer git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2638 3b4a5df2-a311-0410-b5c6-a8a6f20db521
17 lines
634 B
C
17 lines
634 B
C
#ifndef __SUPER_FAST_HASH_H
|
|
#define __SUPER_FAST_HASH_H
|
|
|
|
#include <stdio.h>
|
|
|
|
// From http://www.azillionmonkeys.com/qed/hash.html
|
|
// Author of main code is Paul Hsieh
|
|
// I just added some convenience functions
|
|
// Also note http://burtleburtle.net/bob/hash/doobs.html, which shows that this is 20% faster than the one on that page but has more collisions
|
|
|
|
unsigned int SuperFastHash (const char * data, int length);
|
|
unsigned int SuperFastHashIncremental (const char * data, int len, unsigned int lastHash );
|
|
unsigned int SuperFastHashFile (const char * filename);
|
|
unsigned int SuperFastHashFilePtr (FILE *fp);
|
|
|
|
#endif
|