Lines Matching refs:dataOffset
91 int32_t UpgradePkgFile::GetEntryOffset(size_t &dataOffset, const PkgManager::FileInfoPtr file) in GetEntryOffset() argument
106 dataOffset = UPGRADE_FILE_HEADER_LEN + pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo); in GetEntryOffset()
107 dataOffset += UPGRADE_RESERVE_LEN + GetUpgradeSignatureLen(); in GetEntryOffset()
108 dataOffset += compDataLen; in GetEntryOffset()
119 size_t dataOffset = 0; in AddEntry() local
121 int32_t ret = GetEntryOffset(dataOffset, file); in AddEntry()
139 ret = entry->Pack(inStream, dataOffset, encodeLen); in AddEntry()
153 …PKG_LOGI("Header offset:%zu data offset:%zu packedFileSize: %zu", offset, dataOffset, packedFileSi… in AddEntry()
599 …size_t ret = entry->DecodeHeader(headerBuff, parsedLen + info.srcOffset, info.dataOffset, decodeLe… in SaveEntry()
622 info.dataOffset += entry->GetFileInfo()->packedSize; in SaveEntry()
651 info.dataOffset = parsedLen + tlv.length + UPGRADE_RESERVE_LEN; in ReadComponents()
868 int32_t UpgradeFileEntry::DecodeHeader(PkgBuffer &buffer, size_t headerOffset, size_t dataOffset, in DecodeHeader() argument
912 dataOffset_ = dataOffset; in DecodeHeader()
915 PKG_LOGI("Component offset: %zu %zu packedSize:%zu %zu %s", headerOffset, dataOffset, in DecodeHeader()