Home
last modified time | relevance | path

Searched refs:bufSize (Results 1 - 25 of 42) sorted by relevance

12

/base/hiviewdfx/blackbox_lite/
H A 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()
H A Dblackbox_adapter.c54 unsigned int bufSize, int isAppend) in FullWriteFile()
58 (void)bufSize; in FullWriteFile()
53 FullWriteFile(const char *filePath, const char *buf, unsigned int bufSize, int isAppend) FullWriteFile() argument
H A Dblackbox_detector.h22 int UploadEventByStream(const char *buf, unsigned int bufSize);
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
H A 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 static uint32_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()
71 *bufSize = inBuffData + bufOutDataSize; in GetDataSize()
55 GetDataSize(uint32_t cmdId, const struct HksBlob *inData, const struct HksBlob *outData, uint32_t *bufSize) GetDataSize() argument
/base/hiviewdfx/hiview/test/moduletest/common/
H A 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/security/access_token/services/tokensyncmanager/include/remote/
H A Dsoft_bus_channel.h226 * @param bufSize uuid string size
230 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/msdp/device_status/utils/ipc/src/
H A Dstream_client.cpp62 const int32_t bufSize = static_cast<int32_t>(size); in SendMsg() local
63 int32_t remSize = bufSize; in SendMsg()
83 retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_); in SendMsg()
H A 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/msdp/device_status/intention/services/device_manager/src/
H A Dmonitor.cpp115 size_t bufSize { sizeof(struct inotify_event) }; in ReceiveDevice()
119 bufSize += sizeof(struct inotify_event); in ReceiveDevice()
120 numRead = ::read(inotifyFd_, buf, bufSize); in ReceiveDevice()
122 (bufSize + sizeof(struct inotify_event) <= sizeof(buf))); in ReceiveDevice()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
H A Dhks_asn1_test.cpp65 const uint32_t bufSize = 16; in HWTEST_F() local
66 uint8_t bufData[bufSize] = { 0 }; in HWTEST_F()
82 const uint32_t bufSize = 16; in HWTEST_F() local
83 uint8_t bufData[bufSize] = { 0 }; in HWTEST_F()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file.c96 uint32_t bufSize = sizeof(struct CmMutableBlob) * (uint32_t)fileNums; in MallocFileNames() local
97 struct CmMutableBlob *temp = (struct CmMutableBlob *)CMMalloc(bufSize); in MallocFileNames()
102 (void)memset_s(temp, bufSize, 0, bufSize); in MallocFileNames()
/base/customization/config_policy/frameworks/config_policy/src/
H A Dconfig_policy_utils.c137 size_t bufSize = strlen(opKeyDir) + strlen(opKeyValue) + 1; in GetOpkeyPath() local
138 bufSize = Min(bufSize, MAX_PATH_LEN); in GetOpkeyPath()
139 result = (char *)calloc(bufSize, sizeof(char)); in GetOpkeyPath()
140 if (result != NULL && sprintf_s(result, bufSize, "%s%s", opKeyDir, opKeyValue) > 0) { in GetOpkeyPath()
194 size_t bufSize = strlen(relPath) + sizeof(":,") + 1; in GetFollowXRule() local
195 bufSize = Min(bufSize, MAX_PATH_LEN); in GetFollowXRule()
196 char *search = (char *)calloc(bufSize, sizeof(char)); in GetFollowXRule()
197 if (search == NULL || sprintf_s(search, bufSize, " in GetFollowXRule()
[all...]
/base/msdp/device_status/intention/ipc/socket/src/
H A Dsocket_session.cpp72 const int32_t bufSize = static_cast<int32_t>(size); in SendMsg() local
73 int32_t remSize = bufSize; in SendMsg()
96 "pid:%{public}d", retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_, pid_); in SendMsg()
H A Dsocket_session_manager.cpp125 bool SocketSessionManager::SetBufferSize(int32_t sockFd, int32_t bufSize) in SetBufferSize() argument
127 if (::setsockopt(sockFd, SOL_SOCKET, SO_SNDBUF, &bufSize, sizeof(bufSize)) != 0) { in SetBufferSize()
131 if (::setsockopt(sockFd, SOL_SOCKET, SO_RCVBUF, &bufSize, sizeof(bufSize)) != 0) { in SetBufferSize()
/base/msdp/device_status/rust/data/binding/include/
H A Dfusion_data_binding.h34 size_t bufSize; member
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_event_source_example/
H A 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/hiviewdfx/hichecker/interfaces/js/kits/napi/js_leak_watcher/
H A Djs_leak_watcher.js71 let bufSize = 1024;
73 let buf = new ArrayBuffer(bufSize);
76 length: bufSize
/base/hiviewdfx/hiview/utility/common_utils/include/
H A Dcalc_fingerprint.h55 static int CalcBufferSha(const std::string& buffer, size_t bufSize, char *hash, size_t len);
/base/hiviewdfx/blackbox_lite/interfaces/native/innerkits/
H A Dblackbox_adapter.h37 extern int FullWriteFile(const char *filePath, const char *buf, unsigned int bufSize, int isAppend);
/base/hiviewdfx/blackbox_lite/interfaces/native/kits/
H A Dblackbox_adapter.h37 extern int FullWriteFile(const char *filePath, const char *buf, unsigned int bufSize, int isAppend);
/base/hiviewdfx/hiview/utility/common_utils/
H A Dcalc_fingerprint.cpp118 int CalcFingerprint::CalcBufferSha(const string& buffer, size_t bufSize, char *hash, size_t len) in CalcBufferSha() argument
123 return CalcBufferSha((unsigned char *)buffer.c_str(), bufSize, hash, len); in CalcBufferSha()
/base/msdp/device_status/rust/data/binding/src/
H A Dfusion_data_binding.cpp38 cdrag->bufSize = drag->buffer.size(); in CDragDataFrom()
/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/
H A 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/test/unittest/common/
H A Dhidumper_innerkits_test.cpp88 const int bufSize = 256; in StartTestProcess() local
89 char buf[bufSize] = { 0 }; in StartTestProcess()
90 (void)strerror_r(errno, buf, bufSize); in StartTestProcess()
/base/update/updater/test/fuzztest/package_fuzzer/
H A Dpkg_fuzz_test.h108 size_t bufSize = 4096; in BuildFileDigest() local
109 Hpackage::PkgBuffer buff(bufSize); in BuildFileDigest()
123 ret = stream->Read(buff, offset, bufSize, readLen); in BuildFileDigest()

Completed in 12 milliseconds

12