Class: MachO::LoadCommands::PreboundDylibCommand

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

Overview

A load command used to indicate dynamic libraries used in prebinding. Corresponds to LC_PREBOUND_DYLIB.

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

#linked_modulesInteger



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

field :linked_modules, :uint32

#nameLCStr



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

field :name, :lcstr, :to_s => true

#nmodulesInteger



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

field :nmodules, :uint32

#to_hHash



597
598
599
600
601
602
603
# File 'lib/macho/load_commands.rb', line 597

def to_h
  {
    "name" => name.to_h,
    "nmodules" => nmodules,
    "linked_modules" => linked_modules,
  }.merge super
end