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



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

field :offset, :uint32

#sizeInteger

Returns the size of the symbol segment in bytes.

Returns:

  • (Integer)

    the size of the symbol segment in bytes



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

field :size, :uint32

#to_hHash

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

Returns:



1270
1271
1272
1273
1274
1275
# File 'lib/macho/load_commands.rb', line 1270

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