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.
Constant Summary collapse
- FORMAT =
"L=6"- SIZEOF =
24
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(raw_data, offset, cmd, cmdsize, symoff, nsyms, stroff, strsize) ⇒ SymtabCommand
constructor
private
A new instance of SymtabCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, symoff, nsyms, stroff, strsize) ⇒ SymtabCommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SymtabCommand.
628 629 630 631 632 633 634 |
# File 'lib/macho/load_commands.rb', line 628 def initialize(raw_data, offset, cmd, cmdsize, symoff, nsyms, stroff, strsize) super(raw_data, 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.
616 617 618 |
# File 'lib/macho/load_commands.rb', line 616 def nsyms @nsyms end |
#stroff ⇒ Object (readonly)
Returns the string table's offset.
619 620 621 |
# File 'lib/macho/load_commands.rb', line 619 def stroff @stroff end |
#strsize ⇒ Object (readonly)
Returns the string table size in bytes.
622 623 624 |
# File 'lib/macho/load_commands.rb', line 622 def strsize @strsize end |
#symoff ⇒ Fixnum (readonly)
Returns the symbol table's offset.
613 614 615 |
# File 'lib/macho/load_commands.rb', line 613 def symoff @symoff end |