Home
last modified time | relevance | path

Searched refs:copyLen (Results 1 - 7 of 7) sorted by relevance

/base/update/updater/services/flow_update/update_bin/
H A Dbin_process.cpp171 size_t copyLen = 0; in UnCompressDataProducer() local
174 copyLen = STASH_BUFFER_SIZE - stashDataSize_; in UnCompressDataProducer()
175 if (memcpy_s(stashBuffer_.buffer + stashDataSize_, copyLen, buffer.buffer + writeSize, copyLen) != EOK) { in UnCompressDataProducer()
183 writeSize += copyLen; in UnCompressDataProducer()
187 copyLen = size - writeSize; in UnCompressDataProducer()
188 if (memcpy_s(stashBuffer_.buffer + stashDataSize_, copyLen, buffer.buffer + writeSize, copyLen) != EOK) { in UnCompressDataProducer()
191 stashDataSize_ += copyLen; in UnCompressDataProducer()
193 if (flowStream->Write(stashBuffer_, stashDataSize_, start - stashDataSize_ + copyLen) ! in UnCompressDataProducer()
[all...]
/base/update/updater/services/package/pkg_manager/
H A Dpkg_stream.cpp223 size_t copyLen = GetFileLength() - start; in Read() local
224 readLen = ((copyLen > needRead) ? needRead : copyLen); in Read()
229 PKG_LOGE("Memcpy failed size:%zu, start:%zu copyLen:%zu %zu", needRead, start, copyLen, readLen); in Read()
248 size_t copyLen = memSize_ - start; in Write() local
249 if (copyLen < size) { in Write()
250 PKG_LOGE("Write fail copyLen %zu, %zu", copyLen, size); in Write()
325 PKG_LOGE("Memcpy failed size:%zu, copyLen in Read()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/
H A Ddfx_dump_catcher.cpp175 size_t copyLen; in ReportDumpCatcherStats() local
178 copyLen = std::min(sizeof(stat->targetProcess) - 1, processName.size()); in ReportDumpCatcherStats()
179 if (memcpy_s(stat->targetProcess, sizeof(stat->targetProcess) - 1, processName.c_str(), copyLen) != 0) { in ReportDumpCatcherStats()
185 copyLen = std::min(sizeof(stat->summary) - 1, msg.size()); in ReportDumpCatcherStats()
186 if (memcpy_s(stat->summary, sizeof(stat->summary) - 1, msg.c_str(), copyLen) != 0) { in ReportDumpCatcherStats()
194 copyLen = std::min(sizeof(stat->callerElf) - 1, strlen(info.dli_fname)); in ReportDumpCatcherStats()
195 if (memcpy_s(stat->callerElf, sizeof(stat->callerElf) - 1, info.dli_fname, copyLen) != 0) { in ReportDumpCatcherStats()
204 copyLen = std::min(sizeof(stat->callerProcess) - 1, cmdline.size()); in ReportDumpCatcherStats()
206 cmdline.c_str(), copyLen) != 0) { in ReportDumpCatcherStats()
/base/startup/appspawn/modules/sandbox/
H A Dsandbox_manager.c594 size_t copyLen = permissionNode->section.gidCount; in AppendPermissionGid() local
598 copyLen = APP_MAX_GIDS - dacInfo->gidCount; in AppendPermissionGid()
600 int ret = memcpy_s(&dacInfo->gidTable[dacInfo->gidCount], sizeof(gid_t) * copyLen, in AppendPermissionGid()
601 permissionNode->section.gidTable, sizeof(gid_t) * copyLen); in AppendPermissionGid()
608 dacInfo->gidCount += copyLen; in AppendPermissionGid()
626 size_t copyLen = sandboxNode->section.gidCount; in AppendPackageNameGids() local
632 copyLen = APP_MAX_GIDS - dacInfo->gidCount; in AppendPackageNameGids()
634 int ret = memcpy_s(&dacInfo->gidTable[dacInfo->gidCount], sizeof(gid_t) * copyLen, in AppendPackageNameGids()
635 sandboxNode->section.gidTable, sizeof(gid_t) * copyLen); in AppendPackageNameGids()
641 dacInfo->gidCount += copyLen; in AppendPackageNameGids()
[all...]
/base/hiviewdfx/hilog_lite/command/
H A Dhilog_command.c106 int copyLen = (len < DOMAIN_ID_LENGTH) ? len : DOMAIN_ID_LENGTH; in SetOutputDomain() local
108 if (strncpy_s(g_hiviewConfig.logOutputModule + destStart, modSize - destStart, mod + sourceStart, copyLen) != 0) { in SetOutputDomain()
/base/startup/appspawn/modules/common/
H A Dappspawn_common.c74 size_t copyLen = len; in SetProcessName() local
77 copyLen = MAX_LEN_SHORT_NAME - 1; in SetProcessName()
78 pos += (len - copyLen); in SetProcessName()
80 bool isRet = strncpy_s(shortName, MAX_LEN_SHORT_NAME, pos, copyLen) != EOK; in SetProcessName()
/base/hiviewdfx/hiview/base/utility/
H A Dfile_util.cpp321 ssize_t copyLen = sendfile(fdOut, fdIn, nullptr, totalLen - copyTotalLen); in CopyFileFast() local
322 if (copyLen <= 0) { in CopyFileFast()
325 copyTotalLen += static_cast<uint64_t>(copyLen); in CopyFileFast()

Completed in 7 milliseconds