NetStringTable
Engine/source/sim/netStringTable.h
Classes:
Private Types
enum
Constants { InitialSize = 16 InvalidEntry = 0xFFFFFFFF HashTableSize = 2128 DataChunkerSize = 65536 }
Public Friends
Private Attributes
Private Functions
incStringRef(U32 id)
Public Functions
const char *
lookupString(U32 id)
removeString(U32 id, bool script)
Public Static Functions
expandString(NetStringHandle & string, char * buf, U32 bufSize, U32 argc, const char ** argv)
Detailed Description
Private Types
Constants
Enumerator
- InitialSize = 16
- InvalidEntry = 0xFFFFFFFF
- HashTableSize = 2128
- DataChunkerSize = 65536
Public Friends
Private Attributes
DataChunker * allocator
U32 firstFree
U32 firstValid
U32 hashTable [HashTableSize]
U32 size
Entry * table
Private Functions
NetStringTable()
~NetStringTable()
addString(const char * string)
incStringRef(U32 id)
repack()
Public Functions
incStringRefScript(U32 id)
lookupString(U32 id)
removeString(U32 id, bool script)
Public Static Functions
create()
destroy()
expandString(NetStringHandle & string, char * buf, U32 bufSize, U32 argc, const char ** argv)