Home
last modified time | relevance | path

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

/AliOS-Things-master/components/linksdk/core/utils/
A Dcore_log.c106 uint32_t idx = 0, buffer_idx = 0, copy_len = 0, arg_flag = 0, arg_idx = 0; in _core_log() local
128copy_len = (strlen(buffer) + strlen(value) > CORE_LOG_MAXLEN) ? (CORE_LOG_MAXLEN - strlen(buffer))… in _core_log()
129 memcpy(buffer + strlen(buffer), value, copy_len); in _core_log()
130 buffer_idx += copy_len; in _core_log()
136copy_len = (strlen(buffer) + len > CORE_LOG_MAXLEN) ? (CORE_LOG_MAXLEN - strlen(buffer)) : (len); in _core_log()
137 memcpy(buffer + strlen(buffer), value, copy_len); in _core_log()
138 buffer_idx += copy_len; in _core_log()
145copy_len = (strlen(buffer) + strlen(uint32_str) > CORE_LOG_MAXLEN) ? (CORE_LOG_MAXLEN - strlen(buf… in _core_log()
147 memcpy(buffer + strlen(buffer), uint32_str, copy_len); in _core_log()
148 buffer_idx += copy_len; in _core_log()
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Dota.c156 unsigned int copy_len =0; in rtl8721d_ota_write_ota_cb() local
258 copy_len = Cnt -8; in rtl8721d_ota_write_ota_cb()
278 copy_len = len_temp; in rtl8721d_ota_write_ota_cb()
281 copy_len = aliota_RemainBytes[i]; in rtl8721d_ota_write_ota_cb()
289 copy_len = len; in rtl8721d_ota_write_ota_cb()
292 copy_len = aliota_RemainBytes[i]; in rtl8721d_ota_write_ota_cb()
300 … if(ota_writestream_user(DownloadInfo[i].FlashAddr + alink_size, copy_len, buffer+buf_offset) < 0){ in rtl8721d_ota_write_ota_cb()
306 alink_size += copy_len; in rtl8721d_ota_write_ota_cb()
307 aliota_RemainBytes[i] -= copy_len; in rtl8721d_ota_write_ota_cb()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/netbiosns/
A Dnetbiosns.c345 size_t copy_len = strlen(hostname); in netbiosns_set_name() local
346 LWIP_ASSERT("NetBIOS name is too long!", copy_len < NETBIOS_NAME_LEN); in netbiosns_set_name()
347 if (copy_len >= NETBIOS_NAME_LEN) { in netbiosns_set_name()
348 copy_len = NETBIOS_NAME_LEN - 1; in netbiosns_set_name()
350 MEMCPY(netbiosns_local_name, hostname, copy_len + 1); in netbiosns_set_name()
/AliOS-Things-master/components/mbedtls/library/
A Dcipher.c413 size_t copy_len = 0; in mbedtls_cipher_update() local
437 copy_len = block_size - ctx->unprocessed_len; in mbedtls_cipher_update()
440 copy_len ); in mbedtls_cipher_update()
453 input += copy_len; in mbedtls_cipher_update()
454 ilen -= copy_len; in mbedtls_cipher_update()
471 copy_len = ilen % block_size; in mbedtls_cipher_update()
472 if( copy_len == 0 && in mbedtls_cipher_update()
476 copy_len = block_size; in mbedtls_cipher_update()
480 copy_len ); in mbedtls_cipher_update()
482 ctx->unprocessed_len += copy_len; in mbedtls_cipher_update()
[all …]
/AliOS-Things-master/components/osal_aos/rhino/
A Daos_task.c161 int str_len, copy_len; in aos_task_name_get() local
173 copy_len = (str_len > (buf_size - 1)) ? buf_size - 1 : str_len; in aos_task_name_get()
174 memcpy(buf, name, copy_len); in aos_task_name_get()
/AliOS-Things-master/components/SDL2/src/hidapi/windows/
A Dhid.c785 size_t copy_len = 0; in hid_read_timeout() local
834 copy_len = length > bytes_read ? bytes_read : length; in hid_read_timeout()
835 memcpy(data, dev->read_buf+1, copy_len); in hid_read_timeout()
839 copy_len = length > bytes_read ? bytes_read : length; in hid_read_timeout()
840 memcpy(data, dev->read_buf, copy_len); in hid_read_timeout()
850 return (int)copy_len; in hid_read_timeout()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/httpd/
A Dhttpd.c2094 size_t copy_len = LWIP_MIN(sizeof(http_uri_buf) - 1, uri_len - 1); local
2095 if (copy_len > 0) {
2096 MEMCPY(http_uri_buf, uri, copy_len);
2097 http_uri_buf[copy_len] = 0;
2107 if (copy_len > 0) {
2108 size_t len_left = sizeof(http_uri_buf) - copy_len - 1;
2112 MEMCPY(&http_uri_buf[copy_len], g_psDefaultFilenames[loop].name, name_copy_len);
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Ddns.c750 u16_t query_idx, copy_len; in dns_send() local
804 copy_len = (u16_t)(hostname - hostname_part); in dns_send()
806 pbuf_take_at(p, hostname_part, copy_len, query_idx + 1); in dns_send()
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv4/
A Ddhcp.c1598 u16_t copy_len; in dhcp_parse_reply() local
1602 copy_len = LWIP_MIN(decode_len, 4); in dhcp_parse_reply()
1603 if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) { in dhcp_parse_reply()

Completed in 21 milliseconds