Home
last modified time | relevance | path

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

/external/webrtc/rtc_base/memory/
Dfifo_buffer.cc56 const size_t tail_copy = std::min(copy, buffer_length_ - read_position_); in SetCapacity() local
57 memcpy(buffer, &buffer_[read_position_], tail_copy); in SetCapacity()
58 memcpy(buffer + tail_copy, &buffer_[0], copy - tail_copy); in SetCapacity()
209 const size_t tail_copy = std::min(copy, buffer_length_ - read_position); in ReadOffsetLocked() local
211 memcpy(p, &buffer_[read_position], tail_copy); in ReadOffsetLocked()
212 memcpy(p + tail_copy, &buffer_[0], copy - tail_copy); in ReadOffsetLocked()
236 const size_t tail_copy = std::min(copy, buffer_length_ - write_position); in WriteOffsetLocked() local
238 memcpy(&buffer_[write_position], p, tail_copy); in WriteOffsetLocked()
239 memcpy(&buffer_[0], p + tail_copy, copy - tail_copy); in WriteOffsetLocked()