Class: ELFTools::Sections::NoteSection

Inherits:
Section
  • Object
show all
Includes:
Note
Defined in:
lib/elftools/sections/note_section.rb

Overview

Class of note section. Note section records notes

Constant Summary

Constants included from Note

Note::SIZE_OF_NHDR

Instance Attribute Summary

Attributes inherited from Section

#header, #stream

Instance Method Summary collapse

Methods included from Note

#each_notes, #notes

Methods inherited from Section

create, #data, #initialize, #name, #null?, #type

Constructor Details

This class inherits a constructor from ELFTools::Sections::Section

Instance Method Details

#note_startInteger

Address offset of notes start.

Returns:

  • (Integer)

    The offset.



16
17
18
# File 'lib/elftools/sections/note_section.rb', line 16

def note_start
  header.sh_offset
end

#note_total_sizeInteger

The total size of notes in this section.

Returns:

  • (Integer)

    The size.



22
23
24
# File 'lib/elftools/sections/note_section.rb', line 22

def note_total_size
  header.sh_size
end