Class: Elf::StringTable
Constant Summary
Constants inherited from Section
Elf::Section::Abs, Elf::Section::Common, Elf::Section::FlagsToChars, Elf::Section::OsSpecific, Elf::Section::ProcSpecific, Elf::Section::Reserved, Elf::Section::SunW, Elf::Section::SunWIgnore, Elf::Section::Undef, Elf::Section::XIndex
Instance Attribute Summary
Attributes inherited from Section
#addr, #addralign, #entsize, #file, #index, #info, #offset, #size, #type
Instance Method Summary collapse
Methods inherited from Section
#==, #flags, #flags_i, #flags_s, #initialize, #link, #load, #name, read, #summary
Constructor Details
This class inherits a constructor from Elf::Section
Instance Method Details
#[](idx) ⇒ Object
33 34 35 36 37 |
# File 'lib/elf/stringtable.rb', line 33 def [](idx) load unless @rawtable @rawtable[idx] end |
#load_internal ⇒ Object
29 30 31 |
# File 'lib/elf/stringtable.rb', line 29 def load_internal @rawtable = Utilities::OffsetTable.new(@file.readexactly(@size), "\x00") end |