Searched refs:bytes_to_copy (Results 1 – 2 of 2) sorted by relevance
67 const size_t bytes_to_copy = in ConsumeWithBuffer() local69 TEST_GT(bytes_to_copy, 0U); in ConsumeWithBuffer()71 buffer_.insert(buffer_.end(), data, data + bytes_to_copy); in ConsumeWithBuffer()83 if (count != bytes_to_copy) { in ConsumeWithBuffer()85 << count - bytes_to_copy << " bytes left"; in ConsumeWithBuffer()89 return bytes_to_copy; in ConsumeWithBuffer()
96 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek() local100 for (size_t copied = 0; copied < bytes_to_copy; ++copied) { in ringbuffer_peek()105 return bytes_to_copy; in ringbuffer_peek()