Searched refs:bytes_consumed (Results 1 – 1 of 1) sorted by relevance
182 size_t bytes_consumed = 0; in eager_reader_read() local183 while (bytes_consumed < max_size) { in eager_reader_read()188 if (bytes_to_copy > (max_size - bytes_consumed)) in eager_reader_read()189 bytes_to_copy = max_size - bytes_consumed; in eager_reader_read()191 …memcpy(&buffer[bytes_consumed], &reader->current_buffer->data[reader->current_buffer->offset], byt… in eager_reader_read()192 bytes_consumed += bytes_to_copy; in eager_reader_read()201 bytes_available -= bytes_consumed; in eager_reader_read()206 return bytes_consumed; in eager_reader_read()