Class: ELFTools::Segments::NoteSegment

Inherits:
Segment
  • Object
show all
Includes:
Note
Defined in:
lib/elftools/segments/note_segment.rb

Overview

Class of note segment.

Constant Summary

Constants included from Note

Note::SIZE_OF_NHDR

Instance Attribute Summary

Attributes inherited from Segment

#header, #stream

Instance Method Summary collapse

Methods included from Note

#each_notes, #notes

Methods inherited from Segment

create, #data, #executable?, #initialize, #readable?, #type, #writable?

Constructor Details

This class inherits a constructor from ELFTools::Segments::Segment

Instance Method Details

#note_startInteger

Address offset of notes start.

Returns:

  • (Integer)

    The offset.



15
16
17
# File 'lib/elftools/segments/note_segment.rb', line 15

def note_start
  header.p_offset
end

#note_total_sizeInteger

The total size of notes in this segment.

Returns:

  • (Integer)

    The size.



21
22
23
# File 'lib/elftools/segments/note_segment.rb', line 21

def note_total_size
  header.p_filesz
end