Lines Matching refs:hdr

290     NhdrType hdr;  in ReadBuildID()  local
291 if (!memory_->ReadFully(gnu_build_id_offset_ + offset, &hdr, sizeof(hdr))) { in ReadBuildID()
294 offset += sizeof(hdr); in ReadBuildID()
296 if (gnu_build_id_size_ - offset < hdr.n_namesz) { in ReadBuildID()
299 if (hdr.n_namesz > 0) { in ReadBuildID()
300 std::string name(hdr.n_namesz, '\0'); in ReadBuildID()
301 if (!memory_->ReadFully(gnu_build_id_offset_ + offset, &(name[0]), hdr.n_namesz)) { in ReadBuildID()
310 offset += (hdr.n_namesz + 3) & ~3; in ReadBuildID()
312 if (name == "GNU" && hdr.n_type == NT_GNU_BUILD_ID) { in ReadBuildID()
313 if (gnu_build_id_size_ - offset < hdr.n_descsz || hdr.n_descsz == 0) { in ReadBuildID()
316 std::string build_id(hdr.n_descsz, '\0'); in ReadBuildID()
317 if (memory_->ReadFully(gnu_build_id_offset_ + offset, &build_id[0], hdr.n_descsz)) { in ReadBuildID()
324 offset += (hdr.n_descsz + 3) & ~3; in ReadBuildID()
642 NhdrType hdr; in ReadBuildIDFromMemory() local
643 if (!memory->ReadFully(note_offset + offset, &hdr, sizeof(hdr))) { in ReadBuildIDFromMemory()
646 offset += sizeof(hdr); in ReadBuildIDFromMemory()
648 if (note_size - offset < hdr.n_namesz) { in ReadBuildIDFromMemory()
651 if (hdr.n_namesz > 0) { in ReadBuildIDFromMemory()
652 std::string name(hdr.n_namesz, '\0'); in ReadBuildIDFromMemory()
653 if (!memory->ReadFully(note_offset + offset, &(name[0]), hdr.n_namesz)) { in ReadBuildIDFromMemory()
661 offset += (hdr.n_namesz + 3) & ~3; in ReadBuildIDFromMemory()
663 if (name == "GNU" && hdr.n_type == NT_GNU_BUILD_ID) { in ReadBuildIDFromMemory()
664 if (note_size - offset < hdr.n_descsz || hdr.n_descsz == 0) { in ReadBuildIDFromMemory()
667 std::string build_id(hdr.n_descsz, '\0'); in ReadBuildIDFromMemory()
668 if (memory->ReadFully(note_offset + offset, &build_id[0], hdr.n_descsz)) { in ReadBuildIDFromMemory()
675 offset += (hdr.n_descsz + 3) & ~3; in ReadBuildIDFromMemory()