Class: MachO::LoadCommands::SymtabCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::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 Method Summary collapse
-
#nsyms ⇒ Integer
The number of symbol table entries.
-
#stroff ⇒ Integer
The string table's offset.
-
#strsize ⇒ Integer
The string table size in bytes.
-
#symoff ⇒ Integer
The symbol table's offset.
-
#to_h ⇒ Hash
A hash representation of this SymtabCommand.
Methods inherited from LoadCommand
#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view
Methods inherited from MachOStructure
bytesize, format, #initialize, new_from_bin
Constructor Details
This class inherits a constructor from MachO::MachOStructure
Instance Method Details
#nsyms ⇒ Integer
Returns the number of symbol table entries.
848 |
# File 'lib/macho/load_commands.rb', line 848 field :nsyms, :uint32 |
#stroff ⇒ Integer
Returns the string table's offset.
851 |
# File 'lib/macho/load_commands.rb', line 851 field :stroff, :uint32 |
#strsize ⇒ Integer
Returns the string table size in bytes.
854 |
# File 'lib/macho/load_commands.rb', line 854 field :strsize, :uint32 |
#symoff ⇒ Integer
Returns the symbol table's offset.
845 |
# File 'lib/macho/load_commands.rb', line 845 field :symoff, :uint32 |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::SymtabCommand.
857 858 859 860 861 862 863 864 |
# File 'lib/macho/load_commands.rb', line 857 def to_h { "symoff" => symoff, "nsyms" => nsyms, "stroff" => stroff, "strsize" => strsize, }.merge super end |