Home | History | Annotate | Download | only in idmap

Lines Matching defs:pos_

24             size_t pos_;
26 IdmapBuffer() : buf_((const char *)MAP_FAILED), len_(0), pos_(0) {}
62 if (pos_ + sizeof(uint32_t) > len_) {
64 pos_);
68 if ((reinterpret_cast<uintptr_t>(buf_ + pos_) & 0x3) != 0) {
73 *i = dtohl(*reinterpret_cast<const uint32_t*>(buf_ + pos_));
74 pos_ += sizeof(uint32_t);
84 if (pos_ + sizeof(uint16_t) > len_) {
86 pos_);
90 if ((reinterpret_cast<uintptr_t>(buf_ + pos_) & 0x1) != 0) {
95 *i = dtohs(*reinterpret_cast<const uint16_t*>(buf_ + pos_));
96 pos_ += sizeof(uint16_t);
105 if (pos_ + PATH_LENGTH > len_) {
106 printe("failed to read next path: end of buffer reached at pos=0x%08x\n", pos_);
109 memcpy(b, buf_ + pos_, PATH_LENGTH);
110 pos_ += PATH_LENGTH;