Home
last modified time | relevance | path

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

/drivers/peripheral/distributed_camera/hdi_service/src/utils/
H A Danonymous_string.cpp29 size_t strLen = value.length(); in GetAnonyString() local
30 if (strLen < INT32_MIN_ID_LENGTH) { in GetAnonyString()
34 if (strLen <= INT32_SHORT_ID_LENGTH) { in GetAnonyString()
37 res += value[strLen - 1]; in GetAnonyString()
41 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString()
/drivers/hdf_core/framework/utils/src/
H A Dhdf_cstring.c31 size_t strLen = strlen(str); in HdfCStringObtain() local
32 if (strLen > CSTRING_MAX) { in HdfCStringObtain()
35 size = sizeof(struct HdfCString) + strLen + 1; in HdfCStringObtain()
41 if (strncpy_s(instance->value, strLen + 1, str, strLen) != EOK) { in HdfCStringObtain()
46 instance->size = (int)strLen; in HdfCStringObtain()
H A Dhdf_sbuf_impl_raw.c399 int32_t strLen = 0; in SbufRawImplReadString() local
407 if (!SbufRawImplReadInt32(impl, &strLen) || strLen <= 0) { in SbufRawImplReadString()
410 alignSize = SbufRawImplGetAlignSize(strLen); in SbufRawImplReadString()
411 if (strLen > INT16_MAX || alignSize > SbufRawImplGetLeftReadSize(sbuf)) { in SbufRawImplReadString()
419 str[strLen - 1] = '\0'; in SbufRawImplReadString()
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dwpa_hdi_util.c29 int ConvertMacToStr(const unsigned char *mac, int macSize, char *macStr, int strLen) in ConvertMacToStr() argument
31 if (mac == NULL || macStr == NULL || macSize != MAC_UINT_SIZE || strLen <= MAC_STRING_SIZE) { in ConvertMacToStr()
40 if (snprintf_s(macStr, strLen, strLen - 1, "%02x:%02x:%02x:%02x:%02x:%02x", mac[posZero], mac[posOne], mac[posTwo], in ConvertMacToStr()
H A Dwpa_hdi_util.h29 * @param strLen - mac string len, must bigger than 17
32 int ConvertMacToStr(const unsigned char *mac, int macSize, char *macStr, int strLen);
/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/
H A Ddaudio_utils.cpp42 size_t strLen = value.length(); in GetAnonyString() local
43 if (strLen < INT32_MIN_ID_LENGTH) { in GetAnonyString()
47 if (strLen <= INT32_SHORT_ID_LENGTH) { in GetAnonyString()
50 res += value[strLen - 1]; in GetAnonyString()
54 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString()
/drivers/peripheral/usb/ddk/device/src/
H A Dadapter_if_liteos.c69 size_t strLen = strlen(name); in UsbFnAdapterCreateFconfigString() local
70 if (strLen >= SIZE_MAX) { in UsbFnAdapterCreateFconfigString()
74 configString->len = (uint32_t)strLen; in UsbFnAdapterCreateFconfigString()
75 configString->s = UsbFnMemCalloc(strLen + 1); in UsbFnAdapterCreateFconfigString()
81 int32_t ret = memcpy_s(configString->s, (strLen + 1), name, strLen); in UsbFnAdapterCreateFconfigString()

Completed in 5 milliseconds