Class: MachO::LoadCommands::SymtabCommand

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

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

#nsymsInteger

Returns the number of symbol table entries.

Returns:

  • (Integer)

    the number of symbol table entries



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

field :nsyms, :uint32

#stroffInteger

Returns the string table's offset.

Returns:

  • (Integer)

    the string table's offset



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

field :stroff, :uint32

#strsizeInteger

Returns the string table size in bytes.

Returns:

  • (Integer)

    the string table size in bytes



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

field :strsize, :uint32

#symoffInteger

Returns the symbol table's offset.

Returns:

  • (Integer)

    the symbol table's offset



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

field :symoff, :uint32

#to_hHash

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

Returns:



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