Class: Pliney::MachO::CommonLinkeditDataCommandReader

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

#dataoffObject (readonly)

Returns the value of attribute dataoff.



455
456
457
# File 'lib/pliney/macho.rb', line 455

def dataoff
  @dataoff
end

#datasizeObject (readonly)

Returns the value of attribute datasize.



455
456
457
# File 'lib/pliney/macho.rb', line 455

def datasize
  @datasize
end

Instance Method Details

#parseObject



457
458
459
460
461
# File 'lib/pliney/macho.rb', line 457

def parse()
    super()
    @dataoff = @fh.read_uint32le
    @datasize = @fh.read_uint32le
end