Lines Matching refs:size_
19 : ptr_(NULL), origin_(NULL), avail_(0), size_(0), in Mapper()
23 : ptr_(ptr), origin_(NULL), avail_(size), size_(0), in Mapper()
29 : ptr_(NULL), origin_(MAP_FAILED), avail_(0), size_(0), fd_(-1) {}
32 : ptr_(ptr), origin_(MAP_FAILED), avail_(size), size_(0), fd_(-1) {
54 ::munmap(origin_, size_); in ~Mapper()
76 temp.size_ = (std::size_t)file_size; in open()
104 temp.size_ = (std::size_t)file_size; in open()
109 temp.origin_ = ::mmap(NULL, temp.size_, PROT_READ, MAP_SHARED, temp.fd_, 0); in open()
126 Swap(&size_, &rhs->size_); in swap()
139 MARISA_THROW_IF((offset < 0) || ((unsigned long)offset > size_), in seek()
142 avail_ = (std::size_t)(size_ - offset); in seek()
146 MARISA_THROW_IF((offset > 0) || ((unsigned long)-offset > size_), in seek()
148 ptr_ = static_cast<const UInt8 *>(origin_) + size_ + offset; in seek()