Searched refs:currLen (Results 1 – 3 of 3) sorted by relevance
143 uint32_t currLen = 0; in LoadPersistParam() local145 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()
273 size_t currLen = sizeof(PkgTlv); in ReadComponents() local275 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() local332 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 …]
423 size_t currLen = sizeof(CentralDirEntry) + nameSize + extraSize + commentSize; in DecodeCentralDirEntry() local424 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() local527 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()