Lines Matching defs:mappedData
380 PkgManager::StreamPtr stream, void *mappedData, std::vector<uint8_t> &digest)
384 Hpackage::PkgBuffer buffer(static_cast<uint8_t*>(mappedData) + addrOffset, fileSize);
390 SHA256_Update(&sha256Ctx, static_cast<const uint8_t*>(mappedData), lz4Info.fileInfo.packedSize + 4);
440 void* mappedData = mmap(nullptr, fileSize, PROT_READ, MAP_SHARED, fd, 0);
441 if (mappedData == MAP_FAILED) {
446 int ret = CheckDataIntegrityLz4(lz4Info, fileSize, outStream.get(), mappedData, digest);
447 munmap(mappedData, fileSize);
453 size_t &fileSize, void *mappedData)
466 auto buffer = reinterpret_cast<uint8_t*>(mappedData);
467 auto header = reinterpret_cast<GZipHeader*>(mappedData);
490 PkgManager::StreamPtr stream, void *mappedData, std::vector<uint8_t> &digest)
494 TestDecompressGzipInitFile(zipInfo, offset, fileSize, mappedData);
496 Hpackage::PkgBuffer data(reinterpret_cast<uint8_t*>(mappedData) + offset, fileSize);
502 SHA256_Update(&sha256Ctx, reinterpret_cast<const uint8_t*>(mappedData) + offset, zipInfo.fileInfo.packedSize);
550 void* mappedData = mmap(nullptr, fileSize, PROT_READ, MAP_SHARED, fd, 0);
551 if (mappedData == MAP_FAILED) {
556 int ret = CheckDataIntegrityGzip(zipInfo, fileSize, outStream.get(), mappedData, digest);
557 munmap(mappedData, fileSize);