| /foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dsoftbus_input_audio/ |
| H A D | dsoftbus_input_audio_plugin.cpp | 241 std::string message(reinterpret_cast<const char *>(ext->buf), ext->bufLen); in OnStreamReceived() 272 auto buffer = Buffer::CreateDefaultBuffer(static_cast<BufferMetaType>(metaType), data->bufLen); in CreateBuffer() 275 auto writeSize = bufData->Write(reinterpret_cast<const uint8_t *>(data->buf), data->bufLen, 0); in CreateBuffer() 276 if (static_cast<ssize_t>(writeSize) != data->bufLen) { in CreateBuffer()
|
| /test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/ |
| H A D | hap_resource_test.cpp | 262 size_t bufLen; in LoadFromHap() local 264 &buf, bufLen, errOut); in LoadFromHap() 269 HILOG_DEBUG("extract success, bufLen:%zu", bufLen); in LoadFromHap() 272 out = HapParser::ParseResHex((char *)buf, bufLen, *resDesc, defaultConfig); in LoadFromHap()
|
| /third_party/node/deps/icu-small/source/tools/genrb/ |
| H A D | rle.c | 151 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { in usArrayToRLEString() argument 152 uint16_t* bufLimit = buffer+bufLen; in usArrayToRLEString() 197 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { in byteArrayToRLEString() argument 199 uint16_t* bufLimit = buffer+bufLen; in byteArrayToRLEString()
|
| H A D | wrtjava.cpp | 235 uint32_t bufLen = 0; in str_write_java() local 247 bufLen = uCharsToChars(buf,length,src,srcLen,status); in str_write_java() 258 if(bufLen+(tabCount*4) > columnCount ){ in str_write_java() 262 while(len < bufLen){ in str_write_java() 265 if (add < (bufLen-len)) { in str_write_java() 291 if(len+add<bufLen){ in str_write_java() 301 if (len + add < bufLen) { in str_write_java() 306 T_FileStream_write(out,current,bufLen-len); in str_write_java() 312 T_FileStream_write(out, buf,bufLen); in str_write_java()
|
| /third_party/icu/icu4c/source/tools/genrb/ |
| H A D | rle.c | 151 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { in usArrayToRLEString() argument 152 uint16_t* bufLimit = buffer+bufLen; in usArrayToRLEString() 197 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { in byteArrayToRLEString() argument 199 uint16_t* bufLimit = buffer+bufLen; in byteArrayToRLEString()
|
| H A D | wrtjava.cpp | 235 uint32_t bufLen = 0; in str_write_java() local 247 bufLen = uCharsToChars(buf,length,src,srcLen,status); in str_write_java() 258 if(bufLen+(tabCount*4) > columnCount ){ in str_write_java() 262 while(len < bufLen){ in str_write_java() 265 if (add < (bufLen-len)) { in str_write_java() 291 if(len+add<bufLen){ in str_write_java() 301 if (len + add < bufLen) { in str_write_java() 306 T_FileStream_write(out,current,bufLen-len); in str_write_java() 312 T_FileStream_write(out, buf,bufLen); in str_write_java()
|
| /third_party/skia/third_party/externals/icu/source/tools/genrb/ |
| H A D | rle.c | 151 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { in usArrayToRLEString() argument 152 uint16_t* bufLimit = buffer+bufLen; in usArrayToRLEString() 197 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { in byteArrayToRLEString() argument 199 uint16_t* bufLimit = buffer+bufLen; in byteArrayToRLEString()
|
| H A D | wrtjava.cpp | 235 uint32_t bufLen = 0; in str_write_java() local 247 bufLen = uCharsToChars(buf,length,src,srcLen,status); in str_write_java() 258 if(bufLen+(tabCount*4) > columnCount ){ in str_write_java() 262 while(len < bufLen){ in str_write_java() 265 if (add < (bufLen-len)) { in str_write_java() 291 if(len+add<bufLen){ in str_write_java() 301 if (len + add < bufLen) { in str_write_java() 306 T_FileStream_write(out,current,bufLen-len); in str_write_java() 312 T_FileStream_write(out, buf,bufLen); in str_write_java()
|
| /foundation/communication/dsoftbus/sdk/transmission/trans_channel/tcp_direct/src/ |
| H A D | client_trans_tcp_direct_message.c | 487 uint32_t bufLen = oldBuf->w - oldBuf->data; in TransResizeDataBuffer() local 488 if (memcpy_s(newBuf, pkgLen, oldBuf->data, bufLen) != EOK) { in TransResizeDataBuffer() 496 oldBuf->w = newBuf + bufLen; in TransResizeDataBuffer() 512 uint32_t bufLen = node->w - node->data; in TransTdcProcAllData() local 513 if (bufLen == 0) { in TransTdcProcAllData() 517 if (bufLen < DC_DATA_HEAD_SIZE) { in TransTdcProcAllData() 519 " head bufLen not enough, recv biz head next time. channelId=%{public}d, bufLen=%{public}d", channelId, in TransTdcProcAllData() 520 bufLen); in TransTdcProcAllData() 547 if (bufLen < pkgLe in TransTdcProcAllData() [all...] |
| /device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/scenario/tennis_detect/ |
| H A D | tennis_detect.cpp | 128 int bufLen = w * h * 3;
in frame2Mat() local 137 memcpy_s(dstMat.data, bufLen * sizeof(HI_U8), srcRGB, bufLen * sizeof(HI_U8));
in frame2Mat()
|
| /device/soc/hisilicon/hi3861v100/hi3861_adapter/hals/update/ |
| H A D | hal_hota_board.c | 100 int HotaHalRead(int partition, unsigned int offset, unsigned int bufLen, unsigned char *buffer)
in HotaHalRead() argument 102 if ((buffer == NULL) || (bufLen == 0)) {
in HotaHalRead() 106 if (hi_upg_get_content(offset, buffer, bufLen) != HI_ERR_SUCCESS) {
in HotaHalRead()
|
| /foundation/arkui/ace_engine/adapter/ohos/entrance/ |
| H A D | form_module_preloader.cpp | 172 auto bufLen = jsAsset->GetSize(); in ReadFileFromAssetManager() local 174 if ((buffer == nullptr) || (bufLen <= 0)) { in ReadFileFromAssetManager() 178 content.assign(buffer, buffer + bufLen); in ReadFileFromAssetManager()
|
| /foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/ |
| H A D | wifi_wpa_common.c | 160 int WpaCliCmd(const char *cmd, char *buf, size_t bufLen) in WpaCliCmd() argument 162 if (cmd == NULL || buf == NULL || bufLen <= 0) { in WpaCliCmd() 171 size_t len = bufLen - 1; in WpaCliCmd()
|
| /test/xts/acts/kernel_lite/ipc_posix/signal/ |
| H A D | SignalTestUtils.cpp | 178 const int bufLen = 64;
in CheckSigString() local 179 char buffer[bufLen];
in CheckSigString() 182 size_t bytes = fread(buffer, 1, bufLen, fp);
in CheckSigString()
|
| /foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
| H A D | file_fs_impl.h | 75 static RetDataI64 Read(int32_t fd, char* buf, int64_t bufLen, size_t length, int64_t offset); 76 static RetDataI64 ReadCur(int32_t fd, char* buf, int64_t bufLen, size_t length);
|
| /test/xts/dcts/communication/softbus_standard/transmission/sendstream/ |
| H A D | trans_stream_test.cpp | 78 .bufLen = data.length() + 1,
in HWTEST_F() 123 .bufLen = data.length() + 1,
in HWTEST_F()
|
| /foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
| H A D | fillp_conn.c | 143 static FILLP_INT32 FillpEncodeExtPara(FILLP_UCHAR *buf, FILLP_INT32 bufLen, FILLP_UCHAR paraType, FILLP_UCHAR paraLen, in FillpEncodeExtPara() argument 152 if (bufLen < len) { in FillpEncodeExtPara() 170 FillpErrorType err = memcpy_s(buf, (FILLP_UINT32)bufLen - FILLP_ONE_EXT_PARA_LENGTH, paraValue, paraLen); in FillpEncodeExtPara() 180 static FILLP_INT32 FillpDecodeExtParaNameLen(FILLP_CONST FILLP_UCHAR *buf, FILLP_INT bufLen, FILLP_UCHAR *paraType, in FillpDecodeExtParaNameLen() argument 188 if (bufLen < FILLP_ONE_EXT_PARA_LENGTH) { in FillpDecodeExtParaNameLen() 203 if ((*paraLen == 0) || ((FILLP_INT)(len + (FILLP_INT)(*paraLen)) > bufLen)) { in FillpDecodeExtParaNameLen() 210 static void FillpDecodeRtt(struct FtNetconn *conn, FILLP_CONST FILLP_UCHAR *buf, FILLP_INT bufLen) in FillpDecodeRtt() argument 213 if (bufLen != (FILLP_INT)sizeof(rtt)) { in FillpDecodeRtt() 217 FILLP_INT err = memcpy_s(&rtt, sizeof(rtt), buf, (FILLP_UINT32)bufLen); in FillpDecodeRtt() 229 static void FillpDecodePktSize(struct FtNetconn *conn, FILLP_CONST FILLP_UCHAR *buf, FILLP_INT bufLen) in FillpDecodePktSize() argument 248 FillpDecodeCharacters(struct FtNetconn *conn, FILLP_CONST FILLP_UCHAR *buf, FILLP_INT bufLen) FillpDecodeCharacters() argument 267 FillpDecodeFcAlg(struct FtNetconn *conn, FILLP_CONST FILLP_UCHAR *buf, FILLP_INT bufLen) FillpDecodeFcAlg() argument 288 FillpDecodeExtPara(FILLP_CONST FILLP_UCHAR *buf, FILLP_INT bufLen, struct FtNetconn *conn) FillpDecodeExtPara() argument [all...] |
| /foundation/distributedhardware/distributed_camera/services/channel/src/ |
| H A D | dcamera_softbus_adapter.cpp | 409 int32_t dataLen = data->bufLen; in SourceOnStream() 421 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(data->bufLen); in SourceOnStream() 423 ret = memcpy_s(buffer->Data(), buffer->Capacity(), reinterpret_cast<uint8_t *>(data->buf), data->bufLen); in SourceOnStream() 441 int32_t extLen = ext->bufLen; in HandleSourceStreamExt() 447 std::string jsonStr(reinterpret_cast<const char*>(ext->buf), ext->bufLen); in HandleSourceStreamExt() 619 int32_t dataLen = data->bufLen; in SinkOnStream() 631 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(data->bufLen); in SinkOnStream() 632 ret = memcpy_s(buffer->Data(), buffer->Capacity(), reinterpret_cast<uint8_t *>(data->buf), data->bufLen); in SinkOnStream()
|
| /base/global/resource_management/frameworks/resmgr/src/utils/ |
| H A D | hap_parser.cpp | 84 size_t &bufLen) in ReadCurrentFile() 87 bufLen = fileInfo.uncompressed_size; in ReadCurrentFile() 99 err = unzReadCurrentFile(uf, buffer.get(), bufLen); in ReadCurrentFile() 109 size_t &bufLen) in ReadFileFromZip() 118 if (ReadCurrentFile(uf, fileInfo, buffer, bufLen) != OK) { in ReadFileFromZip() 188 int32_t ReadFileInfoFromZip(unzFile &uf, const char *fileName, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen) in ReadFileInfoFromZip() argument 190 int err = HapParser::ReadFileFromZip(uf, fileName, buffer, bufLen); in ReadFileInfoFromZip() 200 size_t &bufLen) in ReadIndexFromFile() 208 return ReadFileInfoFromZip(uf, "resources.index", buffer, bufLen); in ReadIndexFromFile() 211 return ReadFileInfoFromZip(uf, indexFilePath.c_str(), buffer, bufLen); in ReadIndexFromFile() 83 ReadCurrentFile(unzFile &uf, unz_file_info &fileInfo, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen) ReadCurrentFile() argument 108 ReadFileFromZip(unzFile &uf, const char *fileName, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen) ReadFileFromZip() argument 199 ReadIndexFromFile(const char *zipFile, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen) ReadIndexFromFile() argument 605 ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc, const std::shared_ptr<ResConfigImpl> defaultConfig, const uint32_t &selectedTypes) ParseResHex() argument [all...] |
| /foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
| H A D | auth_session_message_test.cpp | 819 uint32_t bufLen = UDID_SHORT_HASH_HEX_STR; in HWTEST_F() local 821 EXPECT_EQ(false, GetUdidShortHash(nullptr, nullptr, bufLen)); in HWTEST_F() 822 EXPECT_EQ(false, GetUdidShortHash(&info, nullptr, bufLen)); in HWTEST_F() 823 EXPECT_EQ(false, GetUdidShortHash(&info, udidHash, bufLen)); in HWTEST_F() 824 bufLen++; in HWTEST_F() 825 EXPECT_EQ(false, GetUdidShortHash(&info, udidHash, bufLen)); in HWTEST_F() 827 EXPECT_EQ(true, GetUdidShortHash(&info, udidHash, bufLen)); in HWTEST_F() 829 EXPECT_EQ(true, GetUdidShortHash(&info, udidHash, bufLen)); in HWTEST_F() 831 EXPECT_EQ(false, GetUdidShortHash(&info, udidHash, bufLen)); in HWTEST_F() 833 EXPECT_EQ(false, GetUdidShortHash(&info, udidHash, bufLen)); in HWTEST_F() [all...] |
| /foundation/distributedhardware/distributed_camera/services/channel/test/unittest/common/channel/ |
| H A D | dcamera_softbus_adapter_test.cpp | 363 test01.bufLen = buff01.size(); in HWTEST_F() 367 test02.bufLen = buff02.size(); in HWTEST_F() 377 test01.bufLen = 0; in HWTEST_F() 540 test01.bufLen = buff01.size(); in HWTEST_F() 544 test02.bufLen = buff02.size(); in HWTEST_F() 775 test02.bufLen = buff02.size(); in HWTEST_F() 782 data->bufLen = 0; in HWTEST_F() 784 data->bufLen = DCAMERA_MAX_RECV_DATA_LEN + 1; in HWTEST_F() 810 test01.bufLen = buff01.size(); in HWTEST_F() 815 test01.bufLen in HWTEST_F() [all...] |
| /foundation/arkui/ace_engine_lite/frameworks/src/core/context/ |
| H A D | js_framework_raw.h | 23 const char *GetFrameworkRawBuffer(bool snapshotMode, size_t &bufLen);
|
| /base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
| H A D | hap_parser.cpp | 46 int32_t HapParser::ReadFileFromZip(const char *zipFile, const char *fileName, void **buffer, size_t &bufLen, in ReadFileFromZip() argument 73 bufLen = fileInfo.uncompressed_size; in ReadFileFromZip() 90 err = unzReadCurrentFile(uf, *buffer, bufLen); in ReadFileFromZip() 127 size_t &bufLen, std::string &errInfo) in ReadIndexFromFile() 151 return ReadFileFromZip(zipFile, indexFilePath.c_str(), buffer, bufLen, errInfo); in ReadIndexFromFile() 354 int32_t HapParser::ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc, in ParseResHex() argument 126 ReadIndexFromFile(const char *zipFile, void **buffer, size_t &bufLen, std::string &errInfo) ReadIndexFromFile() argument
|
| /base/global/resource_management/frameworks/resmgr/src/ |
| H A D | hap_resource.cpp | 109 int bufLen = inFile.tellg(); in LoadFromIndex() local 110 if (bufLen <= 0) { in LoadFromIndex() 115 void *buf = malloc(bufLen); in LoadFromIndex() 122 inFile.read(static_cast<char *>(buf), bufLen); in LoadFromIndex() local 125 RESMGR_HILOGD(RESMGR_TAG, "extract success, bufLen:%d", bufLen); in LoadFromIndex() 133 int32_t out = HapParser::ParseResHex(static_cast<char *>(buf), bufLen, *resDesc, defaultConfig, selectedTypes); in LoadFromIndex()
|
| /base/tee/tee_client/services/authentication/ |
| H A D | tee_auth_system.h | 23 int32_t TEEGetNativeSACaInfo(const CaAuthInfo *caInfo, uint8_t *buf, uint32_t bufLen);
|