Home | History | Annotate | Download | only in idmap

Lines Matching defs:buf_

22             const char* buf_;
26 IdmapBuffer() : buf_((const char *)MAP_FAILED), len_(0), pos_(0) {}
29 if (buf_ != MAP_FAILED) {
30 munmap(const_cast<char*>(buf_), len_);
47 if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) {
57 if (!buf_) {
68 if ((reinterpret_cast<uintptr_t>(buf_ + pos_) & 0x3) != 0) {
73 *i = dtohl(*reinterpret_cast<const uint32_t*>(buf_ + pos_));
79 if (!buf_) {
90 if ((reinterpret_cast<uintptr_t>(buf_ + pos_) & 0x1) != 0) {
95 *i = dtohs(*reinterpret_cast<const uint16_t*>(buf_ + pos_));
101 if (!buf_) {
109 memcpy(b, buf_ + pos_, PATH_LENGTH);