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

#nsyms ⇒ Integer

Returns the number of symbol table entries.

Returns:

  • (Integer) —

    the number of symbol table entries



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

field :nsyms, :uint32

#stroff ⇒ Integer

Returns the string table's offset.

Returns:

  • (Integer) —

    the string table's offset



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

field :stroff, :uint32

#strsize ⇒ Integer

Returns the string table size in bytes.

Returns:

  • (Integer) —

    the string table size in bytes



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

field :strsize, :uint32

#symoff ⇒ Integer

Returns the symbol table's offset.

Returns:

  • (Integer) —

    the symbol table's offset



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

field :symoff, :uint32

#to_h ⇒ Hash

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

Returns:



871
872
873
874
875
876
877
878
# File 'lib/macho/load_commands.rb', line 871

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