Home
last modified time | relevance | path

Searched refs:bufSize (Results 1 – 25 of 30) sorted by relevance

12

/base/hiviewdfx/blackbox/
Dblackbox_detector.c27 int UploadEventByStream(const char *buf, unsigned int bufSize) in UploadEventByStream() argument
29 if (buf == NULL || bufSize == 0) { in UploadEventByStream()
30 BBOX_PRINT_ERR("buf: %p, bufSize: %u\n", buf, bufSize); in UploadEventByStream()
Dblackbox_adapter.c54 unsigned int bufSize, int isAppend) in FullWriteFile() argument
58 (void)bufSize; in FullWriteFile()
Dblackbox_detector.h22 int UploadEventByStream(const char *buf, unsigned int bufSize);
DREADME_zh.md154 int FullWriteFile(const char *filePath, const char *buf, unsigned int bufSize, int isAppend);
164 | bufSize | unsigned int | 是 | 需要写入数据大小 |
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_ipc_slice.c33 static uint32_t GetBlobBufSize(const struct HksBlob *blob, uint32_t *bufSize) in GetBlobBufSize() argument
41 *bufSize = ALIGN_SIZE(blob->size) + sizeof(blob->size); in GetBlobBufSize()
45 …32_t GetParamSize(const struct HksBlob *key, const struct HksParamSet *paramSet, uint32_t *bufSize) in GetParamSize() argument
51 *bufSize = ALIGN_SIZE(key->size) + sizeof(key->size) + ALIGN_SIZE(paramSet->paramSetSize); in GetParamSize()
56 uint32_t *bufSize) in GetDataSize() argument
71 *bufSize = inBuffData + bufOutDataSize; in GetDataSize()
/base/hiviewdfx/hiview/test/moduletest/common/
Dhiview_plugin_platform_module_test.cpp34 const int bufSize = 128; in GetCmdResultFromPopen() local
35 char buffer[bufSize]; in GetCmdResultFromPopen()
38 if (fgets(buffer, bufSize - 1, fp) != NULL) { in GetCmdResultFromPopen()
/base/msdp/device_status/utils/ipc/src/
Dstream_client.cpp61 const int32_t bufSize = static_cast<int32_t>(size); in SendMsg() local
62 int32_t remSize = bufSize; in SendMsg()
82 retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_); in SendMsg()
Dstream_session.cpp57 const int32_t bufSize = static_cast<int32_t>(size); in SendMsg() local
58 int32_t remSize = bufSize; in SendMsg()
79 retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_); in SendMsg()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_asn1_test.cpp67 const uint32_t bufSize = 16; variable
68 uint8_t bufData[bufSize] = { 0 };
84 const uint32_t bufSize = 16; variable
85 uint8_t bufData[bufSize] = { 0 };
/base/msdp/device_status/services/device_manager/src/
Dmonitor.cpp116 size_t bufSize { sizeof(struct inotify_event) }; in ReceiveDevice() local
120 bufSize += sizeof(struct inotify_event); in ReceiveDevice()
121 numRead = ::read(inotifyFd_, buf, bufSize); in ReceiveDevice()
123 (bufSize + sizeof(struct inotify_event) <= sizeof(buf))); in ReceiveDevice()
/base/security/access_token/services/tokensyncmanager/include/remote/
Dsoft_bus_channel.h230 void RandomUuid(char buf[37], int bufSize) in RandomUuid() argument
250 if (sprintf_s(p, bufSize, "4%x", b % xbase) < 0) { in RandomUuid()
255 … if (sprintf_s(p, bufSize, "%c%x", c[GetRandomUint32() % strlen(c)], b % xbase) < 0) { in RandomUuid()
260 if (sprintf_s(p, bufSize, "%02x", b) < 0) { in RandomUuid()
273 if (p - buf == bufSize) { in RandomUuid()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_file.c94 uint32_t bufSize = sizeof(struct CmMutableBlob) * (uint32_t)fileNums; in MallocFileNames() local
95 struct CmMutableBlob *temp = (struct CmMutableBlob *)CMMalloc(bufSize); in MallocFileNames()
100 (void)memset_s(temp, bufSize, 0, bufSize); in MallocFileNames()
/base/customization/config_policy/frameworks/config_policy/src/
Dconfig_policy_utils.c135 size_t bufSize = strlen(opKeyDir) + strlen(opKeyValue) + 1; in GetOpkeyPath() local
136 bufSize = Min(bufSize, MAX_PATH_LEN); in GetOpkeyPath()
137 result = (char *)calloc(bufSize, sizeof(char)); in GetOpkeyPath()
138 if (result != NULL && sprintf_s(result, bufSize, "%s%s", opKeyDir, opKeyValue) > 0) { in GetOpkeyPath()
192 size_t bufSize = strlen(relPath) + sizeof(":,") + 1; in GetFollowXRule() local
193 bufSize = Min(bufSize, MAX_PATH_LEN); in GetFollowXRule()
194 char *search = (char *)calloc(bufSize, sizeof(char)); in GetFollowXRule()
195 if (search == NULL || sprintf_s(search, bufSize, ":%s,", relPath) == -1) { in GetFollowXRule()
/base/hiviewdfx/hiview/utility/common_utils/
Dcalc_fingerprint.cpp96 int CalcFingerprint::CalcBufferSha(const string& buffer, size_t bufSize, char *hash, size_t len) in CalcBufferSha() argument
102 SHA256((unsigned char *)buffer.c_str(), bufSize, value); in CalcBufferSha()
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_event_source_example/
Dbundle_event_source_example.cpp86 const int bufSize = 2048; in OnFileDescriptorEvent() local
87 char buffer[bufSize] = {0}; in OnFileDescriptorEvent()
95 int len = read(inotifyFd_, buffer, bufSize); in OnFileDescriptorEvent()
/base/msdp/device_status/rust/data/binding/include/
Dfusion_data_binding.h34 size_t bufSize; member
/base/hiviewdfx/hiview/utility/common_utils/include/
Dcalc_fingerprint.h46 static int CalcBufferSha(const std::string& buffer, size_t bufSize, char *hash, size_t len);
/base/hiviewdfx/blackbox/interfaces/native/kits/
Dblackbox_adapter.h37 extern int FullWriteFile(const char *filePath, const char *buf, unsigned int bufSize, int isAppend);
/base/hiviewdfx/blackbox/interfaces/native/innerkits/
Dblackbox_adapter.h37 extern int FullWriteFile(const char *filePath, const char *buf, unsigned int bufSize, int isAppend);
/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/
Devent_source_example.cpp90 const int bufSize = 2048; in OnFileDescriptorEvent() local
91 char buffer[bufSize] = {0}; in OnFileDescriptorEvent()
99 int len = read(inotifyFd_, buffer, bufSize); in OnFileDescriptorEvent()
/base/hiviewdfx/hidumper/frameworks/native/
Ddump_utils.cpp78 const int bufSize = 128; in ErrnoToMsg() local
79 char buf[bufSize] = {0}; in ErrnoToMsg()
80 strerror_r(error, buf, bufSize); in ErrnoToMsg()
/base/hiviewdfx/hidumper/test/unittest/common/
Dhidumper_innerkits_test.cpp86 const int bufSize = 256; in StartTestProcess() local
87 char buf[bufSize] = { 0 }; in StartTestProcess()
88 (void)strerror_r(errno, buf, bufSize); in StartTestProcess()
/base/msdp/device_status/rust/data/binding/src/
Dfusion_data_binding.cpp39 cdrag->bufSize = drag->buffer.size(); in CDragDataFrom()
/base/update/updater/services/ptable_parse/
Dptable_manager.cpp297 size_t bufSize = 0; in GetPtableBufferFromPkg() local
299 outStream->GetBuffer(buffer, bufSize); in GetPtableBufferFromPkg()
300 if (memcpy_s(imageBuf, size, buffer, std::min(static_cast<size_t>(size), bufSize))) { in GetPtableBufferFromPkg()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/
Dlog_utils.cpp494 constexpr int bufSize = 256; in PrintErrorno() local
495 char buf[bufSize] = { 0 }; in PrintErrorno()
497 (void)strerror_r(err, buf, bufSize); in PrintErrorno()
499 (void)strerror_s(buf, bufSize, err); in PrintErrorno()

12