H A D | pkg_manager_unittest.cpp | 380 PkgManager::StreamPtr stream, void *mappedData, std::vector<uint8_t> &digest) in CheckDataIntegrityLz4() 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() 466 auto buffer = reinterpret_cast<uint8_t*>(mappedData); in TestDecompressGzipInitFile() 467 auto header = reinterpret_cast<GZipHeader*>(mappedData); in TestDecompressGzipInitFile() 379 CheckDataIntegrityLz4(Hpackage::Lz4FileInfo &lz4Info, size_t fileSize, PkgManager::StreamPtr stream, void *mappedData, std::vector<uint8_t> &digest) CheckDataIntegrityLz4() argument 452 TestDecompressGzipInitFile(Hpackage::ZipFileInfo &zipInfo, size_t &offset, size_t &fileSize, void *mappedData) TestDecompressGzipInitFile() argument 489 CheckDataIntegrityGzip(Hpackage::ZipFileInfo &zipInfo, size_t fileSize, PkgManager::StreamPtr stream, void *mappedData, std::vector<uint8_t> &digest) CheckDataIntegrityGzip() argument 550 void* mappedData = mmap(nullptr, fileSize, PROT_READ, MAP_SHARED, fd, 0); TestDecompressGzip() local [all...] |