Class: Pliney::MachO::LC_RPATH_Reader

Inherits:
CommonLCReader show all
Defined in:
lib/pliney/macho.rb

Instance Attribute Summary collapse

Attributes inherited from CommonLCReader

#cmd, #cmdsize

Attributes inherited from Reader

#fh, #startpos

Instance Method Summary collapse

Methods inherited from CommonLCReader

#resolve_type

Methods inherited from Reader

#initialize, parse, #rewind

Constructor Details

This class inherits a constructor from Pliney::MachO::Reader

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



544
545
546
# File 'lib/pliney/macho.rb', line 544

def offset
  @offset
end

#rpath_dataObject (readonly)

Returns the value of attribute rpath_data.



544
545
546
# File 'lib/pliney/macho.rb', line 544

def rpath_data
  @rpath_data
end

Instance Method Details

#parseObject



546
547
548
549
550
# File 'lib/pliney/macho.rb', line 546

def parse()
    super()
    @offset = @fh.read_uint32le
    @rpath_data = @fh.strictread(@cmdsize - @offset)
end

#rpathObject



552
553
554
# File 'lib/pliney/macho.rb', line 552

def rpath()
    @rpath_data.unpack("Z*").first
end