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.
Constant Summary collapse
- FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"L=6".freeze
- SIZEOF =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
24
Instance Attribute Summary collapse
-
#nsyms ⇒ Integer
readonly
The number of symbol table entries.
-
#stroff ⇒ Integer
readonly
The string table's offset.
-
#strsize ⇒ Integer
readonly
The string table size in bytes.
-
#symoff ⇒ Integer
readonly
The symbol table's offset.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, symoff, nsyms, stroff, strsize) ⇒ SymtabCommand
constructor
private
A new instance of SymtabCommand.
-
#to_h ⇒ Hash
A hash representation of this SymtabCommand.
Methods inherited from LoadCommand
create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
Constructor Details
#initialize(view, 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.
904 905 906 907 908 909 910 |
# File 'lib/macho/load_commands.rb', line 904 def initialize(view, cmd, cmdsize, symoff, nsyms, stroff, strsize) super(view, cmd, cmdsize) @symoff = symoff @nsyms = nsyms @stroff = stroff @strsize = strsize end |
Instance Attribute Details
#nsyms ⇒ Integer (readonly)
887 888 889 |
# File 'lib/macho/load_commands.rb', line 887 def nsyms @nsyms end |
#stroff ⇒ Integer (readonly)
890 891 892 |
# File 'lib/macho/load_commands.rb', line 890 def stroff @stroff end |
#strsize ⇒ Integer (readonly)
893 894 895 |
# File 'lib/macho/load_commands.rb', line 893 def strsize @strsize end |
#symoff ⇒ Integer (readonly)
884 885 886 |
# File 'lib/macho/load_commands.rb', line 884 def symoff @symoff end |
Instance Method Details
#to_h ⇒ Hash
913 914 915 916 917 918 919 920 |
# File 'lib/macho/load_commands.rb', line 913 def to_h { "symoff" => symoff, "nsyms" => nsyms, "stroff" => stroff, "strsize" => strsize, }.merge super end |