Lines Matching refs:hdr
334 const Archive_header* hdr = reinterpret_cast<const Archive_header*>(p); in read_header() local
335 return this->interpret_header(hdr, off, pname, nested_off); in read_header()
343 Archive::interpret_header(const Archive_header* hdr, off_t off, in interpret_header() argument
346 if (memcmp(hdr->ar_fmag, arfmag, sizeof arfmag) != 0) in interpret_header()
353 const int size_string_size = sizeof hdr->ar_size; in interpret_header()
355 memcpy(size_string, hdr->ar_size, size_string_size); in interpret_header()
373 if (hdr->ar_name[0] != '/') in interpret_header()
375 const char* name_end = strchr(hdr->ar_name, '/'); in interpret_header()
377 || name_end - hdr->ar_name >= static_cast<int>(sizeof hdr->ar_name)) in interpret_header()
383 pname->assign(hdr->ar_name, name_end - hdr->ar_name); in interpret_header()
387 else if (hdr->ar_name[1] == ' ') in interpret_header()
393 else if (hdr->ar_name[1] == '/') in interpret_header()
401 long x = strtol(hdr->ar_name + 1, &end, 10); in interpret_header()
529 const Archive_header* hdr = reinterpret_cast<const Archive_header*>(buf); in read_next_header() local
530 off_t size = this->archive_->interpret_header(hdr, this->off_, in read_next_header()