Home
last modified time | relevance | path

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

/system/keymaster/android_keymaster/
Dserializable.cpp84 write_position_ -= read_position_; in reserve()
96 write_position_ = 0; in Reinitialize()
109 write_position_ = buffer_size_; in Reinitialize()
114 assert(buffer_size_ >= write_position_); in available_write()
115 return buffer_size_ - write_position_; in available_write()
119 assert(buffer_size_ >= write_position_); in available_read()
120 assert(write_position_ >= read_position_); in available_read()
121 return write_position_ - read_position_; in available_read()
126 memcpy(buffer_.get() + write_position_, src, write_length); in write()
127 write_position_ += write_length; in write()
[all …]
/system/keymaster/include/keymaster/
Dserializable.h200 Buffer() : buffer_(nullptr), buffer_size_(0), read_position_(0), write_position_(0) {} in Buffer()
215 write_position_ = other.write_position_;
216 other.write_position_ = 0;
246 if (static_cast<size_t>(read_position_ + distance) <= write_position_) { in advance_read()
252 uint8_t* peek_write() { return buffer_.get() + write_position_; } in peek_write()
254 if (static_cast<size_t>(write_position_ + distance) <= buffer_size_) { in advance_write()
255 write_position_ += distance; in advance_write()
269 size_t write_position_; variable