Lines Matching refs:start

331 File_read::find_view(off_t start, section_size_type size,  in find_view()  argument
334 gold_assert(start <= this->size_ in find_view()
336 <= static_cast<unsigned long long>(this->size_ - start))); in find_view()
347 off_t page = File_read::page_offset(start); in find_view()
355 if (p->second->start() <= start in find_view()
356 && (p->second->start() + static_cast<off_t>(p->second->size()) in find_view()
357 >= start + static_cast<off_t>(size))) in find_view()
379 File_read::do_read(off_t start, section_size_type size, void* p) in do_read() argument
384 bytes = this->size_ - start; in do_read()
387 memcpy(p, this->whole_file_view_->data() + start, size); in do_read()
396 off_t read_pos = start; in do_read()
420 static_cast<long long>(start)); in do_read()
426 File_read::read(off_t start, section_size_type size, void* p) in read() argument
428 const File_read::View* pv = this->find_view(start, size, -1U, NULL); in read()
431 memcpy(p, pv->data() + (start - pv->start() + pv->byteshift()), size); in read()
435 this->do_read(start, size, p); in read()
446 this->views_.insert(std::make_pair(std::make_pair(v->start(), in add_view()
471 File_read::make_view(off_t start, section_size_type size, in make_view() argument
475 gold_assert(start <= this->size_ in make_view()
477 <= static_cast<unsigned long long>(this->size_ - start))); in make_view()
479 off_t poff = File_read::page_offset(start); in make_view()
481 section_size_type psize = File_read::pages(size + (start - poff)); in make_view()
532 File_read::find_or_make_view(off_t offset, off_t start, in find_or_make_view() argument
536 if (start > this->size_ in find_or_make_view()
538 > static_cast<unsigned long long>(this->size_ - start))) in find_or_make_view()
543 static_cast<long long>(start)); in find_or_make_view()
573 File_read::View* v = this->find_view(offset + start, size, in find_or_make_view()
598 new File_read::View(v->start(), v->size(), pbytes, byteshift, in find_or_make_view()
607 return this->make_view(offset + start, size, in find_or_make_view()
615 File_read::get_view(off_t offset, off_t start, section_size_type size, in get_view() argument
618 File_read::View* pv = this->find_or_make_view(offset, start, size, in get_view()
620 return pv->data() + (offset + start - pv->start() + pv->byteshift()); in get_view()
624 File_read::get_lasting_view(off_t offset, off_t start, section_size_type size, in get_lasting_view() argument
627 File_read::View* pv = this->find_or_make_view(offset, start, size, in get_lasting_view()
632 + (offset + start - pv->start() + pv->byteshift()))); in get_lasting_view()
639 File_read::do_readv(off_t base, const Read_multiple& rm, size_t start, in do_readv() argument
646 off_t first_offset = rm[start].file_offset; in do_readv()
651 const Read_multiple_entry& i_entry(rm[start + i]); in do_readv()
744 + (base + i_off - view->start() in read_multiple()