Home
last modified time | relevance | path

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

/system/bt/stack/gap/
Dgap_conn.cc375 uint16_t copy_len; in GAP_ConnReadData() local
390 copy_len = (p_buf->len > max_len) ? max_len : p_buf->len; in GAP_ConnReadData()
391 max_len -= copy_len; in GAP_ConnReadData()
392 *p_len += copy_len; in GAP_ConnReadData()
394 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, copy_len); in GAP_ConnReadData()
395 p_data += copy_len; in GAP_ConnReadData()
398 if (p_buf->len > copy_len) { in GAP_ConnReadData()
399 p_buf->offset += copy_len; in GAP_ConnReadData()
400 p_buf->len -= copy_len; in GAP_ConnReadData()