Home
last modified time | relevance | path

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

/system/nvram/messages/
Dio.cpp78 : pos_(static_cast<const uint8_t*>(start)), in InputStreamBuffer()
80 NVRAM_CHECK(pos_ <= end_); in InputStreamBuffer()
84 return pos_ >= end_ && !Advance(); in Done()
89 NVRAM_CHECK(pos_ <= end_); in Read()
90 while (size > static_cast<size_t>(end_ - pos_)) { in Read()
91 memcpy(buffer, pos_, end_ - pos_); in Read()
92 buffer += end_ - pos_; in Read()
93 size -= end_ - pos_; in Read()
94 pos_ = end_; in Read()
98 NVRAM_CHECK(pos_ < end_); in Read()
[all …]
/system/core/init/parser/
Dtokenizer.cpp20 : data_(data), eof_(false), pos_(0), tok_start_(0) { in Tokenizer()
89 pos_++; in AdvChar()
90 if (pos_ < data_.size()) { in AdvChar()
91 cur_char_ = data_[pos_]; in AdvChar()
119 tok_start_ = pos_; in StartText()
124 if (pos_ != tok_start_) { in EndText()
125 current_.text.append(data_, tok_start_, pos_ - tok_start_); in EndText()
Dtokenizer.h67 size_t pos_; variable
/system/teeui/libteeui/include/teeui/
Dmsg_formatting.h60 StreamState(T (&buffer)[size]) : begin_(&buffer[0]), end_(&buffer[size]), pos_(begin_) {} in StreamState()
61 StreamState(T* buffer, size_t size) : begin_(buffer), end_(buffer + size), pos_(begin_) {} in StreamState()
62 StreamState() : begin_(nullptr), end_(nullptr), pos_(nullptr) {} in StreamState()
64 auto good_ = pos_ != nullptr && pos_ + offset <= end_;
66 pos_ += offset;
68 pos_ = nullptr;
73 operator bool() const { return pos_ != nullptr; }
74 ptr_t pos() const { return pos_; }; in pos()
79 uintptr_t pos = pos_ - begin_; in insertFieldSize()
83 zero(pos_ - offset - sizeof(size), pos_ - sizeof(size)); in insertFieldSize()
[all …]
/system/nvram/messages/include/nvram/messages/
Dio.h70 const uint8_t* pos_ = nullptr; variable
143 uint8_t* pos_ = nullptr; variable
152 : OutputStreamBuffer(data, size), data_(pos_) {} in ArrayOutputStreamBuffer()
154 : OutputStreamBuffer(data, end), data_(pos_) {} in ArrayOutputStreamBuffer()
158 size_t bytes_written() const { return pos_ - data_; } in bytes_written()
172 return bytes_written_ + (pos_ - scratch_space_); in bytes_written()
/system/update_engine/payload_generator/
Dxz_android.cc41 *size = std::min(*size, self->data_.size() - self->pos_); in ReadStatic()
42 memcpy(buf, self->data_.data() + self->pos_, *size); in ReadStatic()
43 self->pos_ += *size; in ReadStatic()
50 size_t pos_ = 0; member
/system/keymaster/include/keymaster/
Dauthorization_set.h646 : pos_(invalid), auth_set1_(nullptr), auth_set2_(nullptr) {} in AuthProxyIterator()
648 : pos_(0), auth_set1_(&auth_set1), auth_set2_(&auth_set2) {} in AuthProxyIterator()
650 : pos_(rhs.pos_), auth_set1_(rhs.auth_set1_), auth_set2_(rhs.auth_set2_) {} in AuthProxyIterator()
654 pos_ = rhs.pos_;
661 if (pos_ == invalid) return *this;
662 ++pos_;
663 if (pos_ == (auth_set1_->size() + auth_set2_->size())) {
664 pos_ = invalid;
669 if (pos_ < auth_set1_->size()) {
670 return (*auth_set1_)[pos_];
[all …]
/system/nvram/messages/tests/
Dio_test.cpp46 pos_ = buffer; in Advance()
191 for (; check_pos_ < pos_; check_pos_++, count_++) { in Verify()
204 pos_ = end_; in Advance()
209 pos_ = buffer; in Advance()
/system/core/fs_mgr/liblp/
Dreader.cpp58 : buffer_(reinterpret_cast<const uint8_t*>(buffer)), size_(size), pos_(0) {} in MemoryReader()
60 if (size_ - pos_ < length) { in ReadFully()
64 memcpy(out, buffer_ + pos_, length); in ReadFully()
65 pos_ += length; in ReadFully()
72 size_t pos_; member in android::fs_mgr::MemoryReader