Searched refs:bytes_to_end (Results 1 – 1 of 1) sorted by relevance
/openthread-3.6.0/third_party/tcplp/lib/ |
D | cbuf.c | 110 size_t bytes_to_end; in cbuf_write() local 116 bytes_to_end = chdr->size - w_index; in cbuf_write() 117 if (data_len <= bytes_to_end) { in cbuf_write() 120 copy_from(buf_data, w_index, data, data_offset, bytes_to_end); in cbuf_write() 121 copy_from(buf_data, 0, data, data_offset + bytes_to_end, data_len - bytes_to_end); in cbuf_write() 129 size_t bytes_to_end = chdr->size - chdr->r_index; in cbuf_read_unsafe() local 130 if (numbytes < bytes_to_end) { in cbuf_read_unsafe() 137 copy_into(data, data_offset, buf_data, chdr->r_index, bytes_to_end); in cbuf_read_unsafe() 138 copy_into(data, data_offset + bytes_to_end, buf_data, 0, numbytes - bytes_to_end); in cbuf_read_unsafe() 140 chdr->r_index = numbytes - bytes_to_end; in cbuf_read_unsafe() [all …]
|