Home
last modified time | relevance | path

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

/system/connectivity/wifilogd/
Dbyte_buffer.h42 ByteBuffer() : write_pos_(0) {} in ByteBuffer()
49 CHECK(data_len <= raw_buffer_.size() - write_pos_); in AppendOrDie()
50 std::memcpy(raw_buffer_.data() + write_pos_, data, data_len); in AppendOrDie()
51 write_pos_ += data_len; in AppendOrDie()
59 size_t size() const { return write_pos_; } in size()
63 size_t write_pos_; variable
Dmessage_buffer.cpp30 : data_(new uint8_t[size]), capacity_(size), read_pos_(0), write_pos_(0) { in MessageBuffer()
59 write_pos_ = 0; in Clear()
63 if (read_pos_ == write_pos_) { in ConsumeNextMessage()
73 CHECK(read_pos_ <= write_pos_); in ConsumeNextMessage()
89 std::memcpy(data_.get() + write_pos_, data_start, data_len); in AppendRawBytes()
90 write_pos_ += data_len; in AppendRawBytes()
91 CHECK(write_pos_ <= capacity_); in AppendRawBytes()
Dmessage_buffer.h78 size_t GetFreeSize() const { return capacity_ - write_pos_; } in GetFreeSize()
99 size_t GetReadableSize() const { return write_pos_ - read_pos_; } in GetReadableSize()
104 size_t write_pos_; variable