Class: MachO::SymtabCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::SymtabCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command containing the offsets and sizes of the link-edit 4.3BSD “stab” style symbol table information. Corresponds to LC_SYMTAB.
Instance Attribute Summary collapse
-
#nsyms ⇒ Fixnum
readonly
The number of symbol table entries.
-
#stroff ⇒ Object
readonly
The string table’s offset.
-
#strsize ⇒ Object
readonly
The string table size in bytes.
-
#symoff ⇒ Fixnum
readonly
The symbol table’s offset.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, symoff, nsyms, stroff, strsize) ⇒ SymtabCommand
constructor
A new instance of SymtabCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, symoff, nsyms, stroff, strsize) ⇒ SymtabCommand
Returns a new instance of SymtabCommand.
593 594 595 596 597 598 599 |
# File 'lib/macho/load_commands.rb', line 593 def initialize(offset, cmd, cmdsize, symoff, nsyms, stroff, strsize) super(offset, cmd, cmdsize) @symoff = symoff @nsyms = nsyms @stroff = stroff @strsize = strsize end |
Instance Attribute Details
#nsyms ⇒ Fixnum (readonly)
Returns the number of symbol table entries.
581 582 583 |
# File 'lib/macho/load_commands.rb', line 581 def nsyms @nsyms end |
#stroff ⇒ Object (readonly)
Returns the string table’s offset.
584 585 586 |
# File 'lib/macho/load_commands.rb', line 584 def stroff @stroff end |
#strsize ⇒ Object (readonly)
Returns the string table size in bytes.
587 588 589 |
# File 'lib/macho/load_commands.rb', line 587 def strsize @strsize end |
#symoff ⇒ Fixnum (readonly)
Returns the symbol table’s offset.
578 579 580 |
# File 'lib/macho/load_commands.rb', line 578 def symoff @symoff end |