Class: MachO::LoadCommands::SymsegCommand

Inherits:
LoadCommand show all
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

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

#offsetInteger

Returns the offset to the symbol segment.

Returns:

  • (Integer)

    the offset to the symbol segment



1363
# File 'lib/macho/load_commands.rb', line 1363

field :offset, :uint32

#sizeInteger

Returns the size of the symbol segment in bytes.

Returns:

  • (Integer)

    the size of the symbol segment in bytes



1366
# File 'lib/macho/load_commands.rb', line 1366

field :size, :uint32

#to_hHash

Returns a hash representation of this MachO::LoadCommands::SymsegCommand.

Returns:



1369
1370
1371
1372
1373
1374
# File 'lib/macho/load_commands.rb', line 1369

def to_h
  {
    "offset" => offset,
    "size" => size,
  }.merge super
end