Break out default pbytes argument to read and get_view routines,

adding new routines.
This commit is contained in:
Ian Lance Taylor
2007-09-25 00:27:29 +00:00
parent 5f67a19ce6
commit ba45d2478b
6 changed files with 69 additions and 26 deletions

View File

@@ -98,8 +98,12 @@ class Archive
// Get a view into the underlying file.
const unsigned char*
get_view(off_t start, off_t size, off_t* pbytes = NULL)
{ return this->input_file_->file().get_view(start, size, pbytes); }
get_view(off_t start, off_t size)
{ return this->input_file_->file().get_view(start, size); }
const unsigned char*
get_view_and_size(off_t start, off_t size, off_t* pbytes)
{ return this->input_file_->file().get_view_and_size(start, size, pbytes); }
// Read the archive symbol map.
void