Searched refs:copy_len (Results 1 – 1 of 1) sorted by relevance
375 uint16_t copy_len; in GAP_ConnReadData() local390 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()