Lines Matching defs:View
128 // Class File_read::View.
130 File_read::View::~View()
156 File_read::View::lock()
162 File_read::View::unlock()
169 File_read::View::is_locked()
230 this->whole_file_view_ = new View(0, size, contents, 0, false,
231 View::DATA_NOT_OWNED);
323 // See if we have a view which covers the file starting at START for
324 // SIZE bytes. Return a pointer to the View if found, NULL if not.
325 // If BYTESHIFT is not -1U, the returned View must have the specified
327 // not NULL, this sets *VSHIFTED to a view which would have worked if
330 inline File_read::View*
332 unsigned int byteshift, File_read::View** vshifted) const
428 const File_read::View* pv = this->find_view(start, size, -1U, NULL);
438 // Add a new view. There may already be an existing view at this
439 // offset. If there is, the new view will be larger, and should
440 // replace the old view.
443 File_read::add_view(File_read::View* v)
452 // There was an existing view at this offset. It must not be large
455 File_read::View* vold = ins.first->second;
467 // Make a new view with a specified byteshift, reading the data from
470 File_read::View*
490 View::Data_ownership ownership;
498 ownership = View::DATA_ALLOCATED_ARRAY;
506 ownership = View::DATA_MMAPPED;
515 ownership = View::DATA_ALLOCATED_ARRAY;
520 File_read::View* v = new File_read::View(poff, psize, pbytes, byteshift,
528 // Find a View or make a new one, shifted as required by the file
531 File_read::View*
535 // Check that start and end of the view are within the file.
563 // whole file view. Options may not yet be ready, e.g.,
571 // Try to find a View with the required BYTESHIFT.
572 File_read::View* vshifted;
573 File_read::View* v = this->find_view(offset + start, size,
597 File_read::View* shifted_view =
598 new File_read::View(v->start(), v->size(), pbytes, byteshift,
599 cache, View::DATA_ALLOCATED_ARRAY);
605 // Make a new view. If we don't need an aligned view, use a
612 // Get a view into the file.
618 File_read::View* pv = this->find_or_make_view(offset, start, size,
627 File_read::View* pv = this->find_or_make_view(offset, start, size,
736 File_read::View* view = this->find_view(base + i_off,
739 if (view == NULL)
743 const unsigned char* v = (view->data()
744 + (base + i_off - view->start()
745 + view->byteshift()));