Home
last modified time | relevance | path

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

/base/startup/init/services/modules/sysevent/
Dstartup_time_event.c31 uint32_t currLen; member
55 …n = GetServiceName(item->paramName, args->buffer + args->currLen, args->bufferLen - args->currLen); in TraversalEvent()
56 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent()
58 args->currLen += (uint32_t)len; in TraversalEvent()
60 len = sprintf_s(args->buffer + args->currLen, args->bufferLen - args->currLen, ",%u:%u,%u:%u;", in TraversalEvent()
65 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent()
67 args->currLen += (uint32_t)len; in TraversalEvent()
82 if ((args.currLen > 1) && (args.currLen < MAX_BUFFER_FOR_EVENT)) { in ReportBootEventComplete()
83 buffer[args.currLen - 1] = '\0'; in ReportBootEventComplete()
103 … (uint32_t)curr.tv_sec, (uint32_t)(curr.tv_nsec / USTONSEC), args.currLen, startupTime.detailTime); in ReportBootEventComplete()
/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.cpp593 PkgBuffer headerBuff(buffer.buffer + info.currLen, info.readLen - info.currLen); in SaveEntry()
605 PkgBuffer signBuffer(buffer.buffer + info.currLen, decodeLen); in SaveEntry()
608 info.currLen += decodeLen; in SaveEntry()
648 info.currLen = sizeof(PkgTlv); in ReadComponents()
651 if (info.currLen + sizeof(UpgradeCompInfo) > info.readLen) { in ReadComponents()
659 info.currLen = 0; in ReadComponents()
672 void UpgradePkgFile::ParsePkgHeaderToTlv(const PkgBuffer &buffer, size_t &currLen, PkgTlv &tlv) in ParsePkgHeaderToTlv() argument
685 currLen = sizeof(PkgTlv); in ParsePkgHeaderToTlv()
686 UpgradePkgHeader *header = reinterpret_cast<UpgradePkgHeader *>(buffer.buffer + currLen); in ParsePkgHeaderToTlv()
687 …pkgInfo_.updateFileVersion = ReadLE32(buffer.buffer + currLen + offsetof(UpgradePkgHeader, updateF… in ParsePkgHeaderToTlv()
[all …]
Dpkg_zipfile.cpp461 size_t currLen, uint16_t nameSize, uint16_t extraSize) in DoDecodeCentralDirEntry() argument
472 decodeLen = currLen; in DoDecodeCentralDirEntry()
526 size_t currLen = sizeof(CentralDirEntry) + nameSize + extraSize + commentSize; in DecodeCentralDirEntry() local
527 if (currentPos >= (std::numeric_limits<size_t>::max() - currLen)) { in DecodeCentralDirEntry()
542 return DoDecodeCentralDirEntry(buffer, decodeLen, currLen, nameSize, extraSize); in DecodeCentralDirEntry()
603 size_t currLen = sizeof(LocalFileHeader) + nameSize + extraSize; in DecodeLocalFileHeader() local
604 if (currentPos >= (std::numeric_limits<size_t>::max() - currLen)) { in DecodeLocalFileHeader()
626 decodeLen = currLen; in DecodeLocalFileHeader()
629 ret = DecodeLocalFileHeaderCheck(inStream, data, currentPos + currLen); in DecodeLocalFileHeader()
Dpkg_upgradefile.h60 size_t currLen {};
151 void ParsePkgHeaderToTlv(const PkgBuffer &buffer, size_t &currLen, PkgTlv &tlv);
Dpkg_zipfile.h152 size_t currLen, uint16_t nameSize, uint16_t extraSize);