class OdinFlex::MachO::LC_LOAD_DYLINKER

Constants

VALUE

Attributes

name[R]

Public Class Methods

from_io(cmd, size, offset, io) click to toggle source
# File lib/odinflex/mach-o.rb, line 149
def self.from_io cmd, size, offset, io
  # `size` is the total segment size including command and length bytes
  # so we need to remove them from the size.
  new(cmd, size, *io.read(size - 8).unpack('LA*'))
end
new(cmd, size, offset, name) click to toggle source
Calls superclass method OdinFlex::MachO::Command::new
# File lib/odinflex/mach-o.rb, line 157
def initialize cmd, size, offset, name
  super(cmd, size)
  @offset = offset
  @name = name
end