Lines Matching refs:pData

88     uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) {  in uprv_mapFile()  argument
92 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
96 U_CFUNC void uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
102 UDataMemory *pData, /* Fill in with info on the result doing the mapping. */ in uprv_mapFile() argument
115 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
188 pData->pHeader=(const DataHeader *)MapViewOfFile(map, FILE_MAP_READ, 0, 0, 0); in uprv_mapFile()
189 if(pData->pHeader==NULL) { in uprv_mapFile()
193 pData->map=map; in uprv_mapFile()
198 uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
199 if(pData!=NULL && pData->map!=NULL) { in uprv_unmapFile()
200 UnmapViewOfFile(pData->pHeader); in uprv_unmapFile()
201 CloseHandle(pData->map); in uprv_unmapFile()
202 pData->pHeader=NULL; in uprv_unmapFile()
203 pData->map=NULL; in uprv_unmapFile()
211 uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) { in uprv_mapFile() argument
221 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
247 pData->map = (char *)data + length; in uprv_mapFile()
248 pData->pHeader=(const DataHeader *)data; in uprv_mapFile()
249 pData->mapAddr = data; in uprv_mapFile()
257 uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
258 if(pData!=NULL && pData->map!=NULL) { in uprv_unmapFile()
259 size_t dataLen = (char *)pData->map - (char *)pData->mapAddr; in uprv_unmapFile()
260 if(munmap(pData->mapAddr, dataLen)==-1) { in uprv_unmapFile()
262 pData->pHeader=NULL; in uprv_unmapFile()
263 pData->map=0; in uprv_unmapFile()
264 pData->mapAddr=NULL; in uprv_unmapFile()
286 uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) { in uprv_mapFile() argument
295 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
325 pData->map=p; in uprv_mapFile()
326 pData->pHeader=(const DataHeader *)p; in uprv_mapFile()
327 pData->mapAddr=p; in uprv_mapFile()
332 uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
333 if(pData!=NULL && pData->map!=NULL) { in uprv_unmapFile()
334 uprv_free(pData->map); in uprv_unmapFile()
335 pData->map = NULL; in uprv_unmapFile()
336 pData->mapAddr = NULL; in uprv_unmapFile()
337 pData->pHeader = NULL; in uprv_unmapFile()
419 U_CFUNC UBool uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) { in uprv_mapFile() argument
444 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
465 pData->map = (char *)data + length; in uprv_mapFile()
466 pData->pHeader=(const DataHeader *)data; in uprv_mapFile()
467 pData->mapAddr = data; in uprv_mapFile()
500 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
510 pData->pHeader=(const DataHeader *)val; in uprv_mapFile()
517 U_CFUNC void uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
518 if(pData!=NULL && pData->map!=NULL) { in uprv_unmapFile()
519 uprv_free(pData->map); in uprv_unmapFile()
520 pData->map = NULL; in uprv_unmapFile()
521 pData->mapAddr = NULL; in uprv_unmapFile()
522 pData->pHeader = NULL; in uprv_unmapFile()