D | cbuf.c | 106 size_t cbuf_write(struct cbufhead* chdr, const void* data, size_t data_offset, size_t data_len, cbu… in cbuf_write() argument 118 copy_from(buf_data, w_index, data, data_offset, data_len); 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() 127 void cbuf_read_unsafe(struct cbufhead* chdr, void* data, size_t data_offset, size_t numbytes, int p… in cbuf_read_unsafe() argument 131 copy_into(data, data_offset, buf_data, chdr->r_index, numbytes); 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() 146 size_t cbuf_read(struct cbufhead* chdr, void* data, size_t data_offset, size_t numbytes, int pop, c… in cbuf_read() argument 151 cbuf_read_unsafe(chdr, data, data_offset, numbytes, pop, copy_into); in cbuf_read() [all …]
|