wavelength 1.0.0
Loading...
Searching...
No Matches
arkhash.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/binstream.h"
4
12class ArkHash {
13public:
21
30 int GetHashValue(const char *pszName) const;
31
39 void Read(BinStream &stream);
40
41private:
42 char *mStrings;
43 char *mStringsEnd;
44 char *mStringsLimit;
45 char **mTable;
46 int mTableSize;
47};
int GetHashValue(const char *pszName) const
Find the slot of a name, probing the following slots in turn.
ArkHash()
Construct an empty table.
void Read(BinStream &stream)
Replace the table with the one a stream stores.
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22