Searched refs:realLen (Results 1 – 8 of 8) sorted by relevance
/base/security/device_security_level/baselib/utils/src/ |
D | utils_base64.c | 179 int realLen = Base64Encode(from, fromLen, out, outSize); in Base64EncodeApp() local 180 if (realLen < 0) { in Base64EncodeApp() 185 out[realLen] = '\0'; in Base64EncodeApp() 208 int realLen = Base64Decode(src, decoded, decodedLen); in Base64DecodeApp() local 209 if (realLen < 0) { in Base64DecodeApp() 215 decoded[realLen] = '\0'; in Base64DecodeApp() 217 return realLen; in Base64DecodeApp()
|
/base/startup/init/services/param/base/ |
D | param_trie.c | 331 uint32_t realLen = sizeof(ParamSecurityNode); in AddParamSecurityNode() local 332 PARAM_CHECK((workSpace->area->currOffset + realLen) < workSpace->area->dataSize, return 0, in AddParamSecurityNode() 334 workSpace->area->currOffset, workSpace->area->dataSize, realLen); in AddParamSecurityNode() 341 workSpace->area->currOffset += realLen; in AddParamSecurityNode() 352 uint32_t realLen = sizeof(ParamNode) + 1 + 1; in AddParamNode() local 355 realLen += keyLen + valueLen; in AddParamNode() 357 realLen += keyLen + GetParamMaxLen(type); in AddParamNode() 359 realLen = PARAM_ALIGN(realLen); in AddParamNode() 360 PARAM_CHECK((workSpace->area->currOffset + realLen) < workSpace->area->dataSize, return 0, in AddParamNode() 362 workSpace->area->currOffset, workSpace->area->dataSize, realLen); in AddParamNode() [all …]
|
/base/startup/init/services/begetctl/ |
D | param_cmd.c | 68 int32_t realLen = 0; in GetRealParameter() local 74 realLen = tmp - current; in GetRealParameter() 75 ret = memcpy_s(buffer, buffSize, current, realLen); in GetRealParameter() 78 realLen = 1; in GetRealParameter() 82 realLen = sprintf_s(buffer, buffSize, "%s", current); in GetRealParameter() 84 realLen = sprintf_s(buffer, buffSize, "%s%s", current, name); in GetRealParameter() 87 realLen = sprintf_s(buffer, buffSize, "%s", current); in GetRealParameter() 89 realLen = sprintf_s(buffer, buffSize, "%s", name); in GetRealParameter() 91 BSH_CHECK(realLen >= 0, return NULL, "Failed to format buffer"); in GetRealParameter() 92 buffer[realLen] = '\0'; in GetRealParameter()
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_pkgfile.cpp | 120 …gFile::ConvertStringToBuffer(const std::string &fileName, const PkgBuffer &buffer, size_t &realLen) in ConvertStringToBuffer() argument 128 (realLen)++; in ConvertStringToBuffer()
|
D | pkg_upgradefile.h | 114 int32_t ReadUpgradePkgHeader(const PkgBuffer &buffer, size_t &realLen,
|
D | pkg_upgradefile.cpp | 312 int32_t UpgradePkgFile::ReadUpgradePkgHeader(const PkgBuffer &buffer, size_t &realLen, in ReadUpgradePkgHeader() argument 346 realLen = currLen + tlv.length; in ReadUpgradePkgHeader() 347 algorithm->Update(buffer, realLen); in ReadUpgradePkgHeader() 348 ret = pkgStream_->Read(buffer, realLen, buffer.length, readLen); in ReadUpgradePkgHeader() 364 realLen += currLen; in ReadUpgradePkgHeader()
|
D | pkg_pkgfile.h | 126 …t32_t ConvertStringToBuffer(const std::string &fileName, const PkgBuffer &buffer, size_t &realLen);
|
D | pkg_zipfile.cpp | 308 size_t realLen = 0; in EncodeCentralDirEntry() local 311 }, realLen); in EncodeCentralDirEntry() 329 centralDir->nameSize = realLen; in EncodeCentralDirEntry() 337 int32_t ret = stream->Write(buffer, sizeof(CentralDirEntry) + realLen, startOffset); in EncodeCentralDirEntry() 342 encodeLen = sizeof(CentralDirEntry) + realLen; in EncodeCentralDirEntry()
|