Searched refs:read_position_ (Results 1 – 2 of 2) sorted by relevance
76 memcpy(new_buffer, buffer_.get() + read_position_, available_read()); in reserve()80 write_position_ -= read_position_; in reserve()81 read_position_ = 0; in reserve()92 read_position_ = 0; in Reinitialize()106 read_position_ = 0; in Reinitialize()118 assert(write_position_ >= read_position_); in available_read()119 return write_position_ - read_position_; in available_read()133 memcpy(dest, buffer_.get() + read_position_, read_length); in read()134 read_position_ += read_length; in read()160 read_position_ = 0; in Clear()
207 Buffer() : buffer_(nullptr), buffer_size_(0), read_position_(0), write_position_(0) {} in Buffer()233 const uint8_t* peek_read() const { return buffer_.get() + read_position_; } in peek_read()235 if (static_cast<size_t>(read_position_ + distance) <= write_position_) { in advance_read()236 read_position_ += distance; in advance_read()261 size_t read_position_; variable