wavelength 1.0.0
Loading...
Searching...
No Matches
ArkHash.h
Go to the documentation of this file.
1#pragma once
2
3#include "utl/BinStream.h"
4
10class ArkHash {
11public:
18
25
33 int GetHashValue(const char *str);
34
44 void Read(BinStream &stream);
45
46 char *mHeap;
47 char *mHeapEnd;
48 char *mFree;
49 char **mTable;
50 int mTableSize;
51};
Hash table of the names of the files and directories of an archive.
Definition arkhash.h:12
int GetHashValue(const char *str)
Find a string.
~ArkHash()
Free the strings and the table.
char * mFree
Definition ArkHash.h:48
char * mHeap
Definition ArkHash.h:46
ArkHash()
Create an empty table.
char * mHeapEnd
Definition ArkHash.h:47
void Read(BinStream &stream)
Replace the strings and the table with the ones a stream stores.
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22