Method: ELFTools::Sections::StrTabSection#name_at

Defined in:
lib/elftools/sections/str_tab_section.rb

#name_at(offset) ⇒ String

Return the section or symbol name.

Parameters:

  • offset (Integer)

    Usually from shdr.sh_name or sym.st_name.

Returns:

  • (String)

    The name without null bytes.



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

def name_at(offset)
  Util.cstring(stream, header.sh_offset + offset)
end