Home
last modified time | relevance | path

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

/system/keymaster/
Dserializable.cpp80 write_position_ -= read_position_; in reserve()
93 write_position_ = 0; in Reinitialize()
107 write_position_ = buffer_size_; in Reinitialize()
112 assert(buffer_size_ >= write_position_); in available_write()
113 return buffer_size_ - write_position_; in available_write()
117 assert(buffer_size_ >= write_position_); in available_read()
118 assert(write_position_ >= read_position_); in available_read()
119 return write_position_ - read_position_; in available_read()
125 memcpy(buffer_.get() + write_position_, src, write_length); in write()
126 write_position_ += write_length; in write()
[all …]
/system/keymaster/include/keymaster/
Dserializable.h193 Buffer() : buffer_(NULL), buffer_size_(0), read_position_(0), write_position_(0) {} in Buffer()
221 if (static_cast<size_t>(read_position_ + distance) <= write_position_) { in advance_read()
227 uint8_t* peek_write() { return buffer_.get() + write_position_; } in peek_write()
229 if (static_cast<size_t>(write_position_ + distance) <= buffer_size_) { in advance_write()
230 write_position_ += distance; in advance_write()
248 size_t write_position_; variable