Lines Matching defs:contents

122   // Read the input file and send its contents to OUTPUT_FILE.
173 // Return a view of the contents of a section, decompressed if necessary.
174 // Set *PLEN to the size. Set *IS_NEW to true if the contents need to be
212 remap_str_offsets(const unsigned char* contents, section_size_type len);
216 sized_remap_str_offsets(const unsigned char* contents, section_size_type len);
283 // Return a view of the contents of a section.
472 add_contribution(elfcpp::DW_SECT section_id, const unsigned char* contents,
498 const unsigned char* contents;
539 // Return the contents of the given SLOT in the hash table of signatures.
544 // Return the contents of the given SLOT in the parallel table of
610 write_new_section(const char* section_name, const unsigned char* contents,
808 // Return a view of the contents of a section.
883 // Read the input file and send its contents to OUTPUT_FILE.
1146 const unsigned char* contents =
1150 elfcpp::Swap_unaligned<32, big_endian>::readval(contents);
1160 elfcpp::Swap_unaligned<32, big_endian>::readval(contents
1163 elfcpp::Swap_unaligned<32, big_endian>::readval(contents
1171 elfcpp::Swap_unaligned<32, big_endian>::readval(contents
1174 const unsigned char* phash = contents + 4 * sizeof(uint32_t);
1181 if (pend > contents + index_len)
1194 // Get the contents of the .debug_info.dwo or .debug_types.dwo section.
1262 delete[] contents;
1288 const unsigned char* contents =
1292 elfcpp::Swap_unaligned<32, big_endian>::readval(contents);
1302 elfcpp::Swap_unaligned<32, big_endian>::readval(contents
1305 elfcpp::Swap_unaligned<32, big_endian>::readval(contents
1311 elfcpp::Swap_unaligned<32, big_endian>::readval(contents
1314 const unsigned char* phash = contents + 4 * sizeof(uint32_t);
1321 if (pend > contents + index_len)
1358 delete[] contents;
1419 // Get the section contents. Upon return, if IS_NEW is true, the memory
1425 const unsigned char* contents = this->section_contents(shndx, &len, &is_new);
1429 const unsigned char* remapped = this->remap_str_offsets(contents, len);
1431 delete[] contents;
1432 contents = remapped;
1437 memcpy(copy, contents, len);
1438 contents = copy;
1441 // Add the contents of the input section to the output section.
1443 section_offset_type off = output_file->add_contribution(section_id, contents,
1455 Dwo_file::remap_str_offsets(const unsigned char* contents,
1463 return this->sized_remap_str_offsets<true>(contents, len);
1465 return this->sized_remap_str_offsets<false>(contents, len);
1470 Dwo_file::sized_remap_str_offsets(const unsigned char* contents,
1474 const unsigned char* p = contents;
1616 // is expected to be the largest one, so we will write the contents of this
1623 const unsigned char* contents,
1672 if (::fwrite(contents, 1, len, this->fd_) < len)
1684 Contribution contrib = { section_offset, len, contents };
1939 if (::fwrite(c.contents, 1, c.size, this->fd_) < c.size)
1941 delete[] c.contents;
1949 const unsigned char* contents,
1962 if (::fwrite(contents, 1, len, this->fd_) < len)
1989 // Allocate a buffer for the section contents.
2251 // section contents, and add_contribution does not need to free the memory.
2277 unsigned char* contents = new unsigned char[tu_length];
2278 memcpy(contents, this->buffer_at_offset(0), tu_length);
2280 this->output_file_->add_contribution(elfcpp::DW_SECT_TYPES, contents,
2439 // Process each file, adding its contents to the output file.