3146 LPBYTE pbRootFileEnd = pbRootFile + cbRootFile;
3148 DWORD dwFilePointer = 0;
3158 if(pRootHandler ==
NULL)
3168 pMndxInfo = &pRootHandler->
MndxInfo;
3183 dwFilePointer +=
sizeof(
DWORD) +
sizeof(
DWORD);
3204 if(pMarFile ==
NULL)
3251 DWORD FileNameCount;
3278 DWORD ValidEntryCount = 1;
3290 if(pRootEntry->
Flags & 0x80000000)
3312 #if defined(_DEBUG) && defined(_X86_) && defined(CASCLIB_TEST)
DWORD field_1C
Definition: CascRootFile_Mndx.cpp:47
TRootHandler * pRootHandler
Definition: CascCommon.h:223
#define CASC_ALLOC(type, count)
Definition: CascCommon.h:302
struct _MAR_FILE * pMarFile3
Definition: CascRootFile_Mndx.cpp:58
DWORD MndxEntriesTotal
Definition: CascRootFile_Mndx.cpp:53
LPBYTE(* ROOT_SEARCH)(struct TRootHandler *pRootHandler, struct _TCascSearch *pSearch, PDWORD PtrFileSize, PDWORD PtrLocaleFlags)
Definition: RootHandler.h:36
#define CASC_MAX_MAR_FILES
Definition: CascMndx.h:16
DWORD dwRootFlags
Definition: RootHandler.h:75
#define ERROR_NOT_ENOUGH_MEMORY
Definition: CascPort.h:208
DWORD Flags
Definition: CascRootFile_Mndx.cpp:87
ROOT_GETKEY GetKey
Definition: RootHandler.h:71
Definition: CascMndx.h:272
ROOT_INSERT Insert
Definition: RootHandler.h:68
static LPBYTE MndxHandler_Search(TRootHandler_MNDX *pRootHandler, TCascSearch *pSearch, PDWORD PtrFileSize, PDWORD)
Definition: CascRootFile_Mndx.cpp:3048
void(* ROOT_ENDSEARCH)(struct TRootHandler *pRootHandler, struct _TCascSearch *pSearch)
Definition: RootHandler.h:43
#define ERROR_FILE_CORRUPT
Definition: CascPort.h:218
#define ROOT_FLAG_HAS_NAMES
Definition: RootHandler.h:21
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: CascRootFile_Mndx.cpp:85
LPBYTE(* ROOT_GETKEY)(struct TRootHandler *pRootHandler, const char *szFileName)
Definition: RootHandler.h:48
DWORD MndxEntrySize
Definition: CascRootFile_Mndx.cpp:55
DWORD MarInfoOffset
Definition: CascRootFile_Mndx.cpp:49
static LPBYTE MndxHandler_GetKey(TRootHandler_MNDX *pRootHandler, const char *szFileName)
Definition: CascRootFile_Mndx.cpp:3088
bool bRootFileLoaded
Definition: CascRootFile_Mndx.cpp:61
BYTE * LPBYTE
Definition: CascPort.h:152
DWORD MarDataOffset
Definition: CascRootFile_Mndx.cpp:38
struct _CASC_ROOT_ENTRY_MNDX * PCASC_ROOT_ENTRY_MNDX
struct _FILE_MNDX_HEADER * PFILE_MNDX_HEADER
DWORD MarDataSize
Definition: CascRootFile_Mndx.cpp:36
TFileNameDatabasePtr * pDatabasePtr
Definition: CascMndx.h:345
Definition: CascMndx.h:343
PCASC_ROOT_ENTRY_MNDX * ppValidEntries
Definition: CascRootFile_Mndx.cpp:2923
DWORD cbMarData
Definition: CascMndx.h:347
int GetFileNameCount(PDWORD PtrFileNameCount)
Definition: CascRootFile_Mndx.cpp:2704
static int MndxHandler_Insert(TRootHandler_MNDX *, const char *, LPBYTE)
Definition: CascRootFile_Mndx.cpp:3043
CASC_MNDX_INFO MndxInfo
Definition: CascRootFile_Mndx.cpp:2921
ROOT_SEARCH Search
Definition: RootHandler.h:69
DWORD HeaderVersion
Definition: CascRootFile_Mndx.cpp:45
ROOT_ENDSEARCH EndSearch
Definition: RootHandler.h:70
unsigned int DWORD
Definition: CascPort.h:139
PCASC_MNDX_PACKAGES pPackages
Definition: CascRootFile_Mndx.cpp:2925
DWORD MarInfoSize
Definition: CascRootFile_Mndx.cpp:51
int(* ROOT_INSERT)(struct TRootHandler *pRootHandler, const char *szFileName, LPBYTE pbEncodingKey)
Definition: RootHandler.h:30
Definition: CascRootFile_Mndx.cpp:42
static void MAR_FILE_CreateDatabase(PMAR_FILE pMarFile)
Definition: CascRootFile_Mndx.cpp:2756
Definition: CascRootFile_Mndx.cpp:33
struct _FILE_MNDX_HEADER FILE_MNDX_HEADER
DWORD MarInfoCount
Definition: CascRootFile_Mndx.cpp:50
static int LoadPackageNames(PCASC_MNDX_INFO pMndxInfo, PCASC_MNDX_PACKAGES *ppPackages)
Definition: CascRootFile_Mndx.cpp:2876
static void MndxHandler_EndSearch(TRootHandler_MNDX *, TCascSearch *pSearch)
Definition: CascRootFile_Mndx.cpp:3081
#define ERROR_BAD_FORMAT
Definition: CascPort.h:214
static void MndxHandler_Close(TRootHandler_MNDX *pRootHandler)
Definition: CascRootFile_Mndx.cpp:3118
struct _MAR_FILE * pMarFile1
Definition: CascRootFile_Mndx.cpp:56
unsigned char BYTE
Definition: CascPort.h:136
PCASC_ROOT_ENTRY_MNDX pMndxEntries
Definition: CascRootFile_Mndx.cpp:2924
void(* ROOT_CLOSE)(struct TRootHandler *pRootHandler)
Definition: RootHandler.h:62
DWORD MndxEntriesOffset
Definition: CascRootFile_Mndx.cpp:52
DWORD FormatVersion
Definition: CascRootFile_Mndx.cpp:46
DWORD MndxEntriesValid
Definition: CascRootFile_Mndx.cpp:54
#define CASC_MNDX_SIGNATURE
Definition: CascMndx.h:17
struct _MAR_FILE * pMarFile2
Definition: CascRootFile_Mndx.cpp:57
LPBYTE pbMarData
Definition: CascMndx.h:346
ROOT_CLOSE Close
Definition: RootHandler.h:73
Definition: CascRootFile_Mndx.cpp:2919
static bool RootFileRead(LPBYTE pbFilePointer, LPBYTE pbFileEnd, void *pvBuffer, size_t dwBytesToRead)
Definition: CascRootFile_Mndx.cpp:254
#define ERROR_SUCCESS
Definition: CascPort.h:204