Lines Matching refs:offset
35 size_t offset = startOffset; in ApplyImagePatch() local
36 if (offset + PATCH_NORMAL_MIN_HEADER_LEN > param.patchSize) { in ApplyImagePatch()
41 size_t srcStart = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
42 offset += sizeof(int64_t); in ApplyImagePatch()
43 size_t srcLen = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
44 offset += sizeof(int64_t); in ApplyImagePatch()
45 size_t patchOffset = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
46 offset += sizeof(int64_t); in ApplyImagePatch()
61 startOffset = offset; in ApplyImagePatch()
67 size_t offset = startOffset; in ApplyImagePatch() local
68 if (offset + sizeof(int32_t) > param.patchSize) { in ApplyImagePatch()
72 size_t dataLen = static_cast<size_t>(ReadLE<uint32_t>(param.patch + offset)); in ApplyImagePatch()
73 if (offset + dataLen > param.patchSize) { in ApplyImagePatch()
77 offset += sizeof(uint32_t); in ApplyImagePatch()
79 BlockBuffer data = {param.patch + offset, dataLen}; in ApplyImagePatch()
87 startOffset = offset + dataLen; in ApplyImagePatch()
91 …CompressedImagePatch::StartReadHeader(const PatchParam ¶m, PatchHeader &header, size_t &offset) in StartReadHeader() argument
93 int32_t ret = ReadHeader(param, header, offset); in StartReadHeader()
111 size_t offset = startOffset; in ApplyImagePatch() local
114 if (StartReadHeader(param, header, offset) != 0) { in ApplyImagePatch()
160 startOffset = offset; in ApplyImagePatch()
216 int32_t ZipImagePatch::ReadHeader(const PatchParam ¶m, PatchHeader &header, size_t &offset) in ReadHeader() argument
218 if (offset + PATCH_DEFLATE_MIN_HEADER_LEN > param.patchSize) { in ReadHeader()
222 header.srcStart = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
223 offset += sizeof(uint64_t); in ReadHeader()
224 header.srcLength = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
225 offset += sizeof(uint64_t); in ReadHeader()
226 header.patchOffset = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
227 offset += sizeof(uint64_t); in ReadHeader()
228 header.expandedLen = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
229 offset += sizeof(uint64_t); in ReadHeader()
230 header.targetSize = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
231 offset += sizeof(uint64_t); in ReadHeader()
233 level_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
234 offset += sizeof(int32_t); in ReadHeader()
235 method_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
236 offset += sizeof(int32_t); in ReadHeader()
237 windowBits_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
238 offset += sizeof(int32_t); in ReadHeader()
239 memLevel_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
240 offset += sizeof(int32_t); in ReadHeader()
241 strategy_ = ReadLE<int32_t>(param.patch + offset); in ReadHeader()
242 offset += sizeof(int32_t); in ReadHeader()
269 int32_t Lz4ImagePatch::ReadHeader(const PatchParam ¶m, PatchHeader &header, size_t &offset) in ReadHeader() argument
271 if (offset + PATCH_LZ4_MIN_HEADER_LEN > param.patchSize) { in ReadHeader()
275 header.srcStart = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
276 offset += sizeof(uint64_t); in ReadHeader()
277 header.srcLength = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
278 offset += sizeof(uint64_t); in ReadHeader()
279 header.patchOffset = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
280 offset += sizeof(uint64_t); in ReadHeader()
281 header.expandedLen = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
282 offset += sizeof(uint64_t); in ReadHeader()
283 header.targetSize = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
284 offset += sizeof(uint64_t); in ReadHeader()
286 compressionLevel_ = static_cast<int32_t>(ReadLE<int32_t>(param.patch + offset)); in ReadHeader()
287 offset += sizeof(int32_t); in ReadHeader()
288 method_ = static_cast<int32_t>(ReadLE<int32_t>(param.patch + offset)); in ReadHeader()
289 offset += sizeof(int32_t); in ReadHeader()
290 blockIndependence_ = static_cast<int32_t>(ReadLE<int32_t>(param.patch + offset)); in ReadHeader()
291 offset += sizeof(int32_t); in ReadHeader()
292 contentChecksumFlag_ = static_cast<int32_t>(ReadLE<int32_t>(param.patch + offset)); in ReadHeader()
293 offset += sizeof(int32_t); in ReadHeader()
294 blockSizeID_ = static_cast<int32_t>(ReadLE<int32_t>(param.patch + offset)); in ReadHeader()
295 offset += sizeof(int32_t); in ReadHeader()
296 autoFlush_ = static_cast<int32_t>(ReadLE<int32_t>(param.patch + offset)); in ReadHeader()
297 offset += sizeof(int32_t); in ReadHeader()