Class: Pliney::MachO::DylibStructReader

Inherits:
Reader
  • Object
show all
Defined in:
lib/pliney/macho.rb

Instance Attribute Summary collapse

Attributes inherited from Reader

#fh, #startpos

Instance Method Summary collapse

Methods inherited from Reader

#initialize, parse, #rewind

Constructor Details

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

Instance Attribute Details

#compatibility_versionObject (readonly)

Returns the value of attribute compatibility_version.



506
507
508
# File 'lib/pliney/macho.rb', line 506

def compatibility_version
  @compatibility_version
end

#current_versionObject (readonly)

Returns the value of attribute current_version.



506
507
508
# File 'lib/pliney/macho.rb', line 506

def current_version
  @current_version
end

#offsetObject (readonly)

Returns the value of attribute offset.



506
507
508
# File 'lib/pliney/macho.rb', line 506

def offset
  @offset
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



506
507
508
# File 'lib/pliney/macho.rb', line 506

def timestamp
  @timestamp
end

Instance Method Details

#parseObject



508
509
510
511
512
513
514
# File 'lib/pliney/macho.rb', line 508

def parse()
    super()
    @offset = @fh.read_uint32le
    @timestamp = @fh.read_uint32le
    @current_version = @fh.read_uint32le
    @compatibility_version = @fh.read_uint32le
end