Home
last modified time | relevance | path

Searched refs:headerOffset (Results 1 – 7 of 7) 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(const PkgBuffer &buffer, size_t headerOffset, size_t dataOffset, in DecodeHeader() argument
122 fileInfo_.fileInfo.headerOffset = headerOffset; in DecodeHeader()
Dpkg_gzipfile.cpp104 fileInfo_.fileInfo.headerOffset = startOffset; in EncodeHeader()
153 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Pack()
164 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
190 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
218 int32_t GZipFileEntry::DecodeHeader(const PkgBuffer &buffer, size_t headerOffset, size_t dataOffset, in DecodeHeader() argument
246 fileInfo_.fileInfo.headerOffset = headerOffset; in DecodeHeader()
247 fileInfo_.fileInfo.dataOffset = headerOffset + offset; in DecodeHeader()
Dpkg_zipfile.cpp243 fileInfo_.fileInfo.headerOffset = startOffset; in EncodeHeader()
251 PKG_CHECK(fileInfo_.fileInfo.headerOffset == startOffset, return PKG_INVALID_PARAM, in Pack()
252 …"Offset error %zu %zu %s", fileInfo_.fileInfo.headerOffset, startOffset, fileInfo_.fileInfo.identi… in Pack()
301 fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Pack()
335 centralDir->localHeaderOffset = fileInfo_.fileInfo.headerOffset; in EncodeCentralDirEntry()
440 …fileInfo_.fileInfo.headerOffset = ReadLE32(buffer.buffer + offsetof(CentralDirEntry, localHeaderOf… in DecodeCentralDirEntry()
458 fileInfo_.fileInfo.headerOffset = (fileInfo_.fileInfo.headerOffset == UINT_MAX) ? in DecodeCentralDirEntry()
459 ReadLE64(extraData + BIG_SIZE_HEADER) : fileInfo_.fileInfo.headerOffset; in DecodeCentralDirEntry()
460 } else if (fileInfo_.fileInfo.headerOffset == UINT_MAX) { in DecodeCentralDirEntry()
461 fileInfo_.fileInfo.headerOffset = unpackedSize; in DecodeCentralDirEntry()
[all …]
Dpkg_pkgfile.h41 virtual int32_t DecodeHeader(const PkgBuffer &buffer, size_t headerOffset, size_t dataOffset,
Dpkg_upgradefile.cpp445 int32_t UpgradeFileEntry::DecodeHeader(const PkgBuffer &buffer, size_t headerOffset, size_t dataOff… in DecodeHeader() argument
477 headerOffset_ = headerOffset; in DecodeHeader()
481 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
329 { orgNewBuffer.buffer, newFileInfo->headerOffset, GET_REAL_DATA_LEN(newFileInfo) }, in DiffFile()
343 if (type_ != BLOCK_LZ4 && newFileInfo->dataOffset > newFileInfo->headerOffset) { in DiffFile()
346 …{ orgNewBuffer.buffer, newFileInfo->headerOffset, newFileInfo->dataOffset - newFileInfo->headerOff… in DiffFile()
347 …{ orgOldBuffer.buffer, oldFileInfo->headerOffset, oldFileInfo->dataOffset - oldFileInfo->headerOff… in DiffFile()
433 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
523 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
536 memcmp(data.data(), orgNewBuffer.buffer + fileInfo->headerOffset, bufferSize) == 0) { in TestAndSetConfig()
/base/update/updater/services/include/package/
Dpkg_manager.h78 size_t headerOffset = 0; member