• Home
  • Raw
  • Download

Lines Matching refs:pData

108     uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) {  in uprv_mapFile()  argument
112 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
116 U_CFUNC void uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
122 UDataMemory *pData, /* Fill in with info on the result doing the mapping. */ in uprv_mapFile() argument
135 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
190pData->pHeader = reinterpret_cast<const DataHeader *>(MapViewOfFile(map, FILE_MAP_READ, 0, 0, 0)); in uprv_mapFile()
191 if (pData->pHeader == nullptr) { in uprv_mapFile()
195 pData->map = map; in uprv_mapFile()
200 uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
201 if (pData != nullptr && pData->map != nullptr) { in uprv_unmapFile()
202 UnmapViewOfFile(pData->pHeader); in uprv_unmapFile()
203 CloseHandle(pData->map); in uprv_unmapFile()
204 pData->pHeader = nullptr; in uprv_unmapFile()
205 pData->map = nullptr; in uprv_unmapFile()
213 uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) { in uprv_mapFile() argument
223 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
249 pData->map = (char *)data + length; in uprv_mapFile()
250 pData->pHeader=(const DataHeader *)data; in uprv_mapFile()
251 pData->mapAddr = data; in uprv_mapFile()
259 uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
260 if(pData!=nullptr && pData->map!=nullptr) { in uprv_unmapFile()
261 size_t dataLen = (char *)pData->map - (char *)pData->mapAddr; in uprv_unmapFile()
262 if(munmap(pData->mapAddr, dataLen)==-1) { in uprv_unmapFile()
264 pData->pHeader=nullptr; in uprv_unmapFile()
265 pData->map=0; in uprv_unmapFile()
266 pData->mapAddr=nullptr; in uprv_unmapFile()
288 uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) { in uprv_mapFile() argument
297 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
327 pData->map=p; in uprv_mapFile()
328 pData->pHeader=(const DataHeader *)p; in uprv_mapFile()
329 pData->mapAddr=p; in uprv_mapFile()
334 uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
335 if(pData!=nullptr && pData->map!=nullptr) { in uprv_unmapFile()
336 uprv_free(pData->map); in uprv_unmapFile()
337 pData->map = nullptr; in uprv_unmapFile()
338 pData->mapAddr = nullptr; in uprv_unmapFile()
339 pData->pHeader = nullptr; in uprv_unmapFile()
421 U_CFUNC UBool uprv_mapFile(UDataMemory *pData, const char *path, UErrorCode *status) { in uprv_mapFile() argument
446 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
467 pData->map = (char *)data + length; in uprv_mapFile()
468 pData->pHeader=(const DataHeader *)data; in uprv_mapFile()
469 pData->mapAddr = data; in uprv_mapFile()
502 UDataMemory_init(pData); /* Clear the output struct. */ in uprv_mapFile()
512 pData->pHeader=(const DataHeader *)val; in uprv_mapFile()
519 U_CFUNC void uprv_unmapFile(UDataMemory *pData) { in uprv_unmapFile() argument
520 if(pData!=nullptr && pData->map!=nullptr) { in uprv_unmapFile()
521 uprv_free(pData->map); in uprv_unmapFile()
522 pData->map = nullptr; in uprv_unmapFile()
523 pData->mapAddr = nullptr; in uprv_unmapFile()
524 pData->pHeader = nullptr; in uprv_unmapFile()