Class: MachO::LoadCommands::SymsegCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::SymsegCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
An obsolete load command containing the offset and size of the (GNU style) symbol table information. Corresponds to LC_SYMSEG.
Instance Method Summary collapse
-
#offset ⇒ Integer
The offset to the symbol segment.
-
#size ⇒ Integer
The size of the symbol segment in bytes.
-
#to_h ⇒ Hash
A hash representation of this SymsegCommand.
Methods inherited from LoadCommand
#cmd, #cmdsize, create, new_from_bin, #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
#offset ⇒ Integer
Returns the offset to the symbol segment.
1363 |
# File 'lib/macho/load_commands.rb', line 1363 field :offset, :uint32 |
#size ⇒ Integer
Returns the size of the symbol segment in bytes.
1366 |
# File 'lib/macho/load_commands.rb', line 1366 field :size, :uint32 |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::SymsegCommand.
1369 1370 1371 1372 1373 1374 |
# File 'lib/macho/load_commands.rb', line 1369 def to_h { "offset" => offset, "size" => size, }.merge super end |