Home
last modified time | relevance | path

Searched refs:headerOffset (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/services/package/pkg_package/
Dpkg_lz4file.cpp42 fileInfo_.fileInfo.headerOffset = startOffset; in EncodeHeader()
51 if (fileInfo_.fileInfo.headerOffset != startOffset) { in Pack()
73 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Pack()
103 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
109 int32_t Lz4FileEntry::DecodeHeader(PkgBuffer &buffer, size_t headerOffset, size_t dataOffset, in DecodeHeader() argument
122 fileInfo_.fileInfo.headerOffset = headerOffset; in DecodeHeader()
Dpkg_zipfile.cpp284 fileInfo_.fileInfo.headerOffset = startOffset; in EncodeHeader()
346 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in PackStream()
354 if (fileInfo_.fileInfo.headerOffset != startOffset) { in Pack()
355 PKG_LOGE("Offset error %zu %zu %s", fileInfo_.fileInfo.headerOffset, in Pack()
396 centralDir->localHeaderOffset = fileInfo_.fileInfo.headerOffset; in EncodeCentralDirEntry()
470 …fileInfo_.fileInfo.headerOffset = ReadLE32(buffer.buffer + offsetof(CentralDirEntry, localHeaderOf… in DoDecodeCentralDirEntry()
488 fileInfo_.fileInfo.headerOffset = (fileInfo_.fileInfo.headerOffset == UINT_MAX) ? in DoDecodeCentralDirEntry()
489 ReadLE64(extraData + BIG_SIZE_HEADER) : fileInfo_.fileInfo.headerOffset; in DoDecodeCentralDirEntry()
490 } else if (fileInfo_.fileInfo.headerOffset == UINT_MAX) { in DoDecodeCentralDirEntry()
491 fileInfo_.fileInfo.headerOffset = unpackedSize; in DoDecodeCentralDirEntry()
[all …]
Dpkg_gzipfile.cpp115 fileInfo_.fileInfo.headerOffset = startOffset; in EncodeHeader()
167 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Pack()
204 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
230 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
258 int32_t GZipFileEntry::DecodeHeader(PkgBuffer &buffer, size_t headerOffset, size_t dataOffset, in DecodeHeader() argument
288 fileInfo_.fileInfo.headerOffset = headerOffset; in DecodeHeader()
289 fileInfo_.fileInfo.dataOffset = headerOffset + offset; in DecodeHeader()
Dpkg_zipfile.h146 int32_t DecodeHeader(PkgBuffer &buffer, size_t headerOffset, size_t dataOffset,
Dpkg_upgradefile.h74 int32_t DecodeHeader(PkgBuffer &buffer, size_t headerOffset, size_t dataOffset,
Dpkg_upgradefile.cpp863 int32_t UpgradeFileEntry::DecodeHeader(PkgBuffer &buffer, size_t headerOffset, size_t dataOffset, in DecodeHeader() argument
895 headerOffset_ = headerOffset; in DecodeHeader()
899 PKG_LOGI("Component offset: %zu %zu packedSize:%zu %zu %s", headerOffset, dataOffset, in DecodeHeader()
/base/update/updater/services/diffpatch/diff/
Dimage_diff.cpp24 #define GET_REAL_DATA_LEN(info) (info) ->packedSize + (info)->dataOffset - (info)->headerOffset
335 { orgNewBuffer.buffer, newFileInfo->headerOffset, GET_REAL_DATA_LEN(newFileInfo) }, in DiffFile()
363 if (type_ != BLOCK_LZ4 && newFileInfo->dataOffset > newFileInfo->headerOffset) { in UpdateBlocks()
366 …{ orgNewBuffer.buffer, newFileInfo->headerOffset, newFileInfo->dataOffset - newFileInfo->headerOff… in UpdateBlocks()
367 …{ orgOldBuffer.buffer, oldFileInfo->headerOffset, oldFileInfo->dataOffset - oldFileInfo->headerOff… in UpdateBlocks()
452 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
545 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
560 memcmp(data.data(), orgNewBuffer.buffer + fileInfo->headerOffset, bufferSize) == 0) { in TestAndSetConfig()
/base/update/updater/services/include/package/
Dpkg_info_utils.h81 size_t headerOffset = 0; member
Dpkg_manager.h160 virtual int32_t DecodeHeader(PkgBuffer &buffer, size_t headerOffset, size_t dataOffset,