Home
last modified time | relevance | path

Searched refs:mappedData (Results 1 – 2 of 2) sorted by relevance

/base/update/updater/test/unittest/package/
Dpkg_manager_unittest.cpp416 void* mappedData = mmap(nullptr, fileSize, PROT_READ, MAP_SHARED, fd, 0); in TestDecompressLz4() local
417 PKG_CHECK(mappedData != MAP_FAILED, close(fd); return -2, "Can not mmap "); in TestDecompressLz4()
421 Hpackage::PkgBuffer buffer(static_cast<uint8_t*>(mappedData) + addrOffset, fileSize); in TestDecompressLz4()
427 …SHA256_Update(&sha256Ctx, static_cast<const uint8_t*>(mappedData), lz4Info.fileInfo.packedSize + 4… in TestDecompressLz4()
430 munmap(mappedData, fileSize); in TestDecompressLz4()
439 size_t &fileSize, void *mappedData) in TestDecompressGzipInitFile() argument
452 auto buffer = reinterpret_cast<uint8_t*>(mappedData); in TestDecompressGzipInitFile()
453 auto header = reinterpret_cast<GZipHeader*>(mappedData); in TestDecompressGzipInitFile()
508 void* mappedData = mmap(nullptr, fileSize, PROT_READ, MAP_SHARED, fd, 0); in TestDecompressGzip() local
509 PKG_CHECK(mappedData != MAP_FAILED, close(fd); return -2, "Can not mmap "); in TestDecompressGzip()
[all …]
/base/update/updater/services/package/pkg_manager/
Dpkg_utils.cpp127 void *mappedData = nullptr; in GetFileSize() local
129mappedData = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_POPULATE | MAP_ANON, -1… in GetFileSize()
130 if (mappedData == MAP_FAILED) { in GetFileSize()
134 return static_cast<uint8_t *>(mappedData); in GetFileSize()