Home
last modified time | relevance | path

Searched refs:bytesLen (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/communication/nfc/interfaces/inner_api/common/
H A Dnfc_sdk_common.cpp73 uint32_t bytesLen = src.length() / HEX_BYTE_LEN; in HexStringToBytes() local
76 for (uint32_t i = 0; i < bytesLen; i++) { in HexStringToBytes()
149 uint32_t bytesLen = src.length(); in StringToAsciiBytes() local
150 for (uint32_t i = 0; i < bytesLen; i++) { in StringToAsciiBytes()
/ohos5.0/base/telephony/ril_adapter/services/hril/src/
H A Dhril_base.cpp64 size_t bytesLen = length / SIZE_VALUE; in ConvertHexStringToBytes() local
65 if (length % SIZE_VALUE != 0 || bytesLen <= 0) { in ConvertHexStringToBytes()
69 uint8_t *bytes = (uint8_t *)calloc(bytesLen, sizeof(uint8_t)); in ConvertHexStringToBytes()
/ohos5.0/foundation/filemanagement/user_file_service/interfaces/kits/picker/
H A Dpicker.js93 let bytesLen = 0;
100 bytesLen++;
102 bytesLen += greeceLen;
104 bytesLen += chineseLen;
106 bytesLen += othersLen;
109 return bytesLen;
/ohos5.0/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_common_util.cpp516 void Byte2HexString(const uint8_t* byte, uint8_t bytesLen, char* hexstr, uint8_t hexstrLen) in Byte2HexString() argument
523 if (hexstrLen < bytesLen * 2) { // verify length in Byte2HexString()
525 __func__, bytesLen, hexstrLen); in Byte2HexString()
529 WIFI_LOGI("%{public}s byteLen:%{public}d, hexStrLen:%{public}d", __func__, bytesLen, hexstrLen); in Byte2HexString()
531 for (uint8_t i = 0; i < bytesLen; i++) { in Byte2HexString()
/ohos5.0/foundation/communication/nfc/services/src/tag/
H A Dndef_bt_data_parser.cpp477 int bytesLen = len / HEX_BYTE_LEN; in IsVendorPayloadValid() local
478 if (bytesLen > VENDOR_PAYLOAD_MAX_LEN) { in IsVendorPayloadValid()
479 ErrorLog("BT vendor payload len exceeds, bytesLen = %{public}d", bytesLen); in IsVendorPayloadValid()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_headers.cpp217 uint16_t bytesLen = ObexUtils::GetBufData16(buf, pos) - HDR_UNICODE_PREFIX_LENGTH; in ParseUnicodeText() local
219 if (bytesLen > 0) { in ParseUnicodeText()
220 auto tmpBuf = std::make_unique<uint8_t[]>(bytesLen); in ParseUnicodeText()
221 if (memcpy_s(tmpBuf.get(), bytesLen, &buf[pos], bytesLen) != EOK) { in ParseUnicodeText()
226 ObexUtils::DataReverse(tmpBuf.get(), bytesLen, UINT16_LENGTH); in ParseUnicodeText()
233 pos += bytesLen; in ParseUnicodeText()
/ohos5.0/foundation/communication/wifi/wifi/utils/inc/
H A Dwifi_common_util.h286 void Byte2HexString(const uint8_t* byte, uint8_t bytesLen, char* hexstr, uint8_t hexstrLen);
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dtask_manager.cpp302 ssize_t bytesLen = -1; in ReadThreadInfo() local
312 bytesLen = read(fd, buf, size - 1); in ReadThreadInfo()
314 if (bytesLen <= 0) { in ReadThreadInfo()
318 buf[bytesLen] = '\0'; in ReadThreadInfo()
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c521 uint32_t bytesLen = strlen(encryptedFastAuth) >> 1; in ParseFastAuthValue() local
526 aesParam.dataLen = bytesLen; in ParseFastAuthValue()
557 uint32_t bytesLen = strlen(encNormalizedKey) >> 1; in ParseNormalizedKeyValue() local
562 aesParam.dataLen = bytesLen; in ParseNormalizedKeyValue()