Searched refs:read_position_ (Results 1 – 2 of 2) sorted by relevance
84 memcpy(new_buffer, buffer_.get() + read_position_, available_read()); in reserve()88 write_position_ -= read_position_; in reserve()89 read_position_ = 0; in reserve()100 read_position_ = 0; in Reinitialize()114 read_position_ = 0; in Reinitialize()126 assert(write_position_ >= read_position_); in available_read()127 return write_position_ - read_position_; in available_read()141 memcpy(dest, buffer_.get() + read_position_, read_length); in read()142 read_position_ += read_length; in read()168 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