/system/keymaster/ |
serializable.cpp | 76 memcpy(new_buffer, buffer_.get() + read_position_, available_read()); 80 write_position_ -= read_position_; 81 read_position_ = 0; 92 read_position_ = 0; 106 read_position_ = 0; 118 assert(write_position_ >= read_position_); 119 return write_position_ - read_position_; 133 memcpy(dest, buffer_.get() + read_position_, read_length); 134 read_position_ += read_length; 160 read_position_ = 0 [all...] |
/external/libweave/src/ |
streams.cc | 23 CHECK_LE(read_position_, data_.size()); 24 size_t size_read = std::min(size_to_read, data_.size() - read_position_); 26 memcpy(buffer, data_.data() + read_position_, size_read); 27 read_position_ += size_read;
|
streams.h | 35 size_t read_position_{0};
|
/system/keymaster/include/keymaster/ |
serializable.h | 203 Buffer() : buffer_(NULL), buffer_size_(0), read_position_(0), write_position_(0) {} 229 const uint8_t* peek_read() const { return buffer_.get() + read_position_; } 231 if (static_cast<size_t>(read_position_ + distance) <= write_position_) { 232 read_position_ += distance; 257 size_t read_position_; member in class:keymaster::Buffer
|
/external/webrtc/webrtc/base/ |
stream.cc | 693 data_length_(0), read_position_(0), owner_(Thread::Current()) { 699 data_length_(0), read_position_(0), owner_(owner) { 721 const size_t tail_copy = std::min(copy, buffer_length_ - read_position_); 722 memcpy(buffer, &buffer_[read_position_], tail_copy); 725 read_position_ = 0; 757 read_position_ = (read_position_ + copy) % buffer_length_; 801 *size = (read_position_ + data_length_ <= buffer_length_) ? 802 data_length_ : buffer_length_ - read_position_; 803 return &buffer_[read_position_]; [all...] |
stream.h | 556 size_t read_position_; // offset to the readable data member in class:rtc::FifoBuffer
|