Searched refs:buf_ (Results 1 – 2 of 2) sorted by relevance
21 const char* buf_; member in __anon0cfca4b00111::IdmapBuffer25 IdmapBuffer() : buf_((const char *)MAP_FAILED), len_(0), pos_(0) {} in IdmapBuffer()28 if (buf_ != MAP_FAILED) { in ~IdmapBuffer()29 munmap(const_cast<char*>(buf_), len_); in ~IdmapBuffer()46 … if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { in init()56 if (!buf_) { in nextUint32()67 if ((reinterpret_cast<uintptr_t>(buf_ + pos_) & 0x3) != 0) { in nextUint32()72 *i = dtohl(*reinterpret_cast<const uint32_t*>(buf_ + pos_)); in nextUint32()78 if (!buf_) { in nextUint16()89 if ((reinterpret_cast<uintptr_t>(buf_ + pos_) & 0x1) != 0) { in nextUint16()[all …]
4708 alignas(alignment) char buf_[N]; member in mcld::arena4723 {return buf_ <= p && p <= buf_ + N;} in pointer_in_buffer()4726 arena() noexcept : ptr_(buf_) {} in arena()4735 std::size_t used() const {return static_cast<std::size_t>(ptr_ - buf_);} in used()4736 void reset() {ptr_ = buf_;} in reset()4744 if (static_cast<std::size_t>(buf_ + N - ptr_) >= n) in allocate()