11 #ifndef __HASHTOPTR_H__
12 #define __HASHTOPTR_H__
17 #define KEY_LENGTH_STRING 0xFFFFFFFF // Pass this to Map_Create as dwKeyLength when you want map of string->object
38 const char *
Map_FindString(PCASC_MAP pMap,
const char * szString,
const char * szStringEnd);
39 bool Map_InsertString(PCASC_MAP pMap,
const char * szString,
bool bCutExtension);
42 #endif // __HASHTOPTR_H__
size_t KeyOffset
Definition: Map.h:23
DWORD * PDWORD
Definition: CascPort.h:151
bool Map_InsertString(PCASC_MAP pMap, const char *szString, bool bCutExtension)
Definition: Map.cpp:207
PCASC_MAP Map_Create(DWORD dwMaxItems, DWORD dwKeyLength, DWORD dwKeyOffset)
Definition: Map.cpp:93
struct _CASC_MAP CASC_MAP
void Map_Free(PCASC_MAP pMap)
Definition: Map.cpp:279
const char * Map_FindString(PCASC_MAP pMap, const char *szString, const char *szStringEnd)
Definition: Map.cpp:251
#define bool
Definition: CascPort.h:16
size_t TableSize
Definition: Map.h:21
size_t Map_EnumObjects(PCASC_MAP pMap, void **ppvArray)
Definition: Map.cpp:117
struct _CASC_MAP * PCASC_MAP
bool Map_InsertObject(PCASC_MAP pMap, void *pvNewObject, void *pvKey)
Definition: Map.cpp:170
unsigned int DWORD
Definition: CascPort.h:139
void * Map_FindObject(PCASC_MAP pMap, void *pvKey, PDWORD PtrIndex)
Definition: Map.cpp:138
void * HashTable[1]
Definition: Map.h:25
size_t ItemCount
Definition: Map.h:22
size_t KeyLength
Definition: Map.h:24
bool(* MAP_COMPARE)(PCASC_MAP pMap, void *pvObject, void *pvKey)
Definition: Map.h:29