Home
last modified time | relevance | path

Searched refs:currLen (Results 1 – 3 of 3) sorted by relevance

/base/startup/init/services/param/liteos/
Dparam_hal.c143 uint32_t currLen = 0; in LoadPersistParam() local
145 while (currLen < fileSize) { in LoadPersistParam()
146 if (buffer[currLen] == '\n') { // split line in LoadPersistParam()
147 buffer[currLen] = '\0'; in LoadPersistParam()
151 if (currLen + 1 >= fileSize) { in LoadPersistParam()
154 tmp = buffer + currLen + 1; in LoadPersistParam()
156 currLen++; in LoadPersistParam()
/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.cpp273 size_t currLen = sizeof(PkgTlv); in ReadComponents() local
275 if (currLen + sizeof(UpgradeCompInfo) > readLen) { in ReadComponents()
279 currLen = 0; in ReadComponents()
288 PkgBuffer headerBuff(buffer.buffer + currLen, readLen - currLen); in ReadComponents()
297 PkgBuffer signBuffer(buffer.buffer + currLen, decodeLen); in ReadComponents()
300 currLen += decodeLen; in ReadComponents()
317 size_t currLen = 0; in ReadUpgradePkgHeader() local
332 currLen = sizeof(PkgTlv); in ReadUpgradePkgHeader()
333 UpgradePkgHeader *header = reinterpret_cast<UpgradePkgHeader *>(buffer.buffer + currLen); in ReadUpgradePkgHeader()
334 …pkgInfo_.updateFileVersion = ReadLE32(buffer.buffer + currLen + offsetof(UpgradePkgHeader, updateF… in ReadUpgradePkgHeader()
[all …]
Dpkg_zipfile.cpp423 size_t currLen = sizeof(CentralDirEntry) + nameSize + extraSize + commentSize; in DecodeCentralDirEntry() local
424 PKG_CHECK(currentPos < (std::numeric_limits<size_t>::max() - currLen), in DecodeCentralDirEntry()
442 decodeLen = currLen; in DecodeCentralDirEntry()
526 size_t currLen = sizeof(LocalFileHeader) + nameSize + extraSize; in DecodeLocalFileHeader() local
527 PKG_CHECK(currentPos < (std::numeric_limits<size_t>::max() - currLen), in DecodeLocalFileHeader()
544 decodeLen = currLen; in DecodeLocalFileHeader()
547 ret = DecodeLocalFileHeaderCheck(inStream, data, currentPos + currLen); in DecodeLocalFileHeader()