Home
last modified time | relevance | path

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

/base/update/updater/services/package/pkg_manager/
Dpkg_utils.cpp126 void *mappedData = nullptr; in GetFileSize() local
128mappedData = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_POPULATE | MAP_ANON, -1… in GetFileSize()
129 if (mappedData == MAP_FAILED) { in GetFileSize()
133 return static_cast<uint8_t *>(mappedData); in GetFileSize()
148 void *mappedData = mmap(nullptr, size, PROT_READ, MAP_PRIVATE, fd, 0); in GetFileSize() local
149 if (mappedData == MAP_FAILED) { in GetFileSize()
155 return static_cast<uint8_t *>(mappedData); in GetFileSize()
/base/update/updater/test/unittest/package/
Dpkg_manager_unittest.cpp380 PkgManager::StreamPtr stream, void *mappedData, std::vector<uint8_t> &digest) in CheckDataIntegrityLz4() argument
384 Hpackage::PkgBuffer buffer(static_cast<uint8_t*>(mappedData) + addrOffset, fileSize); in CheckDataIntegrityLz4()
390 …SHA256_Update(&sha256Ctx, static_cast<const uint8_t*>(mappedData), lz4Info.fileInfo.packedSize + 4… in CheckDataIntegrityLz4()
440 void* mappedData = mmap(nullptr, fileSize, PROT_READ, MAP_SHARED, fd, 0); in TestDecompressLz4() local
441 if (mappedData == MAP_FAILED) { in TestDecompressLz4()
446 int ret = CheckDataIntegrityLz4(lz4Info, fileSize, outStream.get(), mappedData, digest); in TestDecompressLz4()
447 munmap(mappedData, fileSize); in TestDecompressLz4()
453 size_t &fileSize, void *mappedData) in TestDecompressGzipInitFile() argument
466 auto buffer = reinterpret_cast<uint8_t*>(mappedData); in TestDecompressGzipInitFile()
467 auto header = reinterpret_cast<GZipHeader*>(mappedData); in TestDecompressGzipInitFile()
[all …]