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



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

field :nsyms, :uint32

#stroffInteger

Returns the string table's offset.

Returns:

  • (Integer)

    the string table's offset



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

field :stroff, :uint32

#strsizeInteger

Returns the string table size in bytes.

Returns:

  • (Integer)

    the string table size in bytes



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

field :strsize, :uint32

#symoffInteger

Returns the symbol table's offset.

Returns:

  • (Integer)

    the symbol table's offset



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

field :symoff, :uint32

#to_hHash

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

Returns:



758
759
760
761
762
763
764
765
# File 'lib/macho/load_commands.rb', line 758

def to_h
  {
    "symoff" => symoff,
    "nsyms" => nsyms,
    "stroff" => stroff,
    "strsize" => strsize,
  }.merge super
end