Lines Matching defs:fileInfo
250 Hpackage::ZipFileInfo *fileInfo = new(std::nothrow) ZipFileInfo;
251 if (fileInfo == nullptr) {
255 fileInfo->fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP;
256 fileInfo->fileInfo.digestMethod = PKG_DIGEST_TYPE_NONE;
257 fileInfo->fileInfo.packedSize = 0;
258 fileInfo->fileInfo.unpackedSize = 0;
259 fileInfo->fileInfo.identity = std::to_string(g_tmpFileId++);
260 fileInfo->level = level_;
261 fileInfo->method = method_;
262 fileInfo->windowBits = windowBits_;
263 fileInfo->memLevel = memLevel_;
264 fileInfo->strategy = strategy_;
265 return std::unique_ptr<Hpackage::FileInfo>((FileInfo *)fileInfo);
304 Hpackage::Lz4FileInfo *fileInfo = new(std::nothrow) Lz4FileInfo;
305 if (fileInfo == nullptr) {
309 fileInfo->fileInfo.packMethod = (method_ == LZ4B_MAGIC) ? PKG_COMPRESS_METHOD_LZ4_BLOCK : PKG_COMPRESS_METHOD_LZ4;
310 fileInfo->fileInfo.digestMethod = PKG_DIGEST_TYPE_NONE;
311 fileInfo->fileInfo.packedSize = 0;
312 fileInfo->fileInfo.unpackedSize = 0;
313 fileInfo->fileInfo.identity = std::to_string(g_tmpFileId++);
314 fileInfo->compressionLevel = static_cast<int8_t>(compressionLevel_);
315 fileInfo->blockIndependence = static_cast<int8_t>(blockIndependence_);
316 fileInfo->contentChecksumFlag = static_cast<int8_t>(contentChecksumFlag_);
317 fileInfo->blockSizeID = static_cast<int8_t>(blockSizeID_);
318 fileInfo->autoFlush = static_cast<int8_t>(autoFlush_);
319 return std::unique_ptr<Hpackage::FileInfo>((FileInfo *)fileInfo);