Searched refs:can_read_bytes (Results 1 – 3 of 3) sorted by relevance
133 size_t can_read_bytes = std::min(bytes_to_read, avail_out_); in ReadBytesFromCache() local134 if (can_read_bytes) { in ReadBytesFromCache()135 memcpy(result, next_out_, can_read_bytes); in ReadBytesFromCache()136 next_out_ += can_read_bytes; in ReadBytesFromCache()137 avail_out_ -= can_read_bytes; in ReadBytesFromCache()139 bytes_read_ += can_read_bytes; in ReadBytesFromCache()140 return can_read_bytes; in ReadBytesFromCache()
72 size_t can_read_bytes = std::min(bytes_to_read, avail_out_); in ReadBytesFromCache() local73 if (can_read_bytes > 0) { in ReadBytesFromCache()74 memcpy(result_ptr, next_out_, can_read_bytes); in ReadBytesFromCache()75 next_out_ += can_read_bytes; in ReadBytesFromCache()76 avail_out_ -= can_read_bytes; in ReadBytesFromCache()78 bytes_read_ += can_read_bytes; in ReadBytesFromCache()79 return can_read_bytes; in ReadBytesFromCache()
180 size_t can_read_bytes = std::min(bytes_to_read, unread_bytes); in ReadBytesFromCache() local181 if (can_read_bytes > 0) { in ReadBytesFromCache()182 result->append(next_unread_byte_, can_read_bytes); in ReadBytesFromCache()183 next_unread_byte_ += can_read_bytes; in ReadBytesFromCache()185 bytes_read_ += can_read_bytes; in ReadBytesFromCache()186 return can_read_bytes; in ReadBytesFromCache()