Home
last modified time | relevance | path

Searched refs:pos_ (Results 1 – 6 of 6) 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/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.cc40 *size = std::min(*size, self->data_.size() - self->pos_); in ReadStatic()
41 memcpy(buf, self->data_.data() + self->pos_, *size); in ReadStatic()
42 self->pos_ += *size; in ReadStatic()
49 size_t pos_ = 0; member
/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()