Lines Matching refs:header
88 int32_t CompressedImagePatch::StartReadHeader(const PatchParam ¶m, PatchHeader &header, size_t … in StartReadHeader() argument
90 int32_t ret = ReadHeader(param, header, offset); in StartReadHeader()
96 … header.srcStart, header.srcLength, header.patchOffset, header.expandedLen, header.targetSize); in StartReadHeader()
97 if (header.srcStart + header.srcLength > param.oldSize) { in StartReadHeader()
108 PatchHeader header {}; in ApplyImagePatch() local
109 if (StartReadHeader(param, header, offset) != 0) { in ApplyImagePatch()
115 BlockBuffer oldData = { param.oldBuff + header.srcStart, header.srcLength }; in ApplyImagePatch()
116 if (DecompressData(pkgManager, oldData, stream, true, header.expandedLen) != 0) { in ApplyImagePatch()
128 info->packedSize = header.targetSize; in ApplyImagePatch()
129 info->unpackedSize = header.expandedLen; in ApplyImagePatch()
137 PatchBuffer patchInfo = {param.patch, header.patchOffset, param.patchSize}; in ApplyImagePatch()
148 if (originalSize != header.targetSize) { in ApplyImagePatch()
210 int32_t ZipImagePatch::ReadHeader(const PatchParam ¶m, PatchHeader &header, size_t &offset) in ReadHeader() argument
216 header.srcStart = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
218 header.srcLength = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
220 header.patchOffset = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
222 header.expandedLen = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
224 header.targetSize = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
263 int32_t Lz4ImagePatch::ReadHeader(const PatchParam ¶m, PatchHeader &header, size_t &offset) in ReadHeader() argument
269 header.srcStart = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
271 header.srcLength = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
273 header.patchOffset = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
275 header.expandedLen = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
277 header.targetSize = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()