Class: MachO::LoadCommands::PrebindCksumCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command containing the value of the original checksum for prebound files, or zero. Corresponds to LC_PREBIND_CKSUM.

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

#cksumInteger

Returns the checksum or 0.

Returns:

  • (Integer)

    the checksum or 0



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

field :cksum, :uint32

#to_hHash

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

Returns:



1022
1023
1024
1025
1026
# File 'lib/macho/load_commands.rb', line 1022

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