Home
last modified time | relevance | path

Searched refs:read_position_ (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/base/
Dstream.cc693 data_length_(0), read_position_(0), owner_(Thread::Current()) { in FifoBuffer()
699 data_length_(0), read_position_(0), owner_(owner) { in FifoBuffer()
721 const size_t tail_copy = std::min(copy, buffer_length_ - read_position_); in SetCapacity()
722 memcpy(buffer, &buffer_[read_position_], tail_copy); in SetCapacity()
725 read_position_ = 0; in SetCapacity()
757 read_position_ = (read_position_ + copy) % buffer_length_; in Read()
801 *size = (read_position_ + data_length_ <= buffer_length_) ? in GetReadData()
802 data_length_ : buffer_length_ - read_position_; in GetReadData()
803 return &buffer_[read_position_]; in GetReadData()
810 read_position_ = (read_position_ + size) % buffer_length_; in ConsumeReadData()
[all …]
Dstream.h556 size_t read_position_; // offset to the readable data variable