Class: Pliney::MachO::SectionReader

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

Instance Attribute Summary

Attributes inherited from CommonSectionReader

#_reserved1, #_reserved2, #addr, #align, #flags, #nreloc, #offset, #reloff, #sectname, #segname, #size

Attributes inherited from Reader

#fh, #startpos

Instance Method Summary collapse

Methods inherited from CommonSectionReader

#section_name, #segment_name

Methods inherited from Reader

#initialize, parse, #rewind

Constructor Details

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

Instance Method Details

#parseObject



391
392
393
394
395
396
397
398
399
400
401
402
# File 'lib/pliney/macho.rb', line 391

def parse()
    super()
    @addr = @fh.read_uint32le
    @size = @fh.read_uint32le
    @offset = @fh.read_uint32le
    @align = @fh.read_uint32le
    @reloff = @fh.read_uint32le
    @nreloc = @fh.read_uint32le
    @flags = @fh.read_uint32le
    @_reserved1 = @fh.read_uint32le
    @_reserved2 = @fh.read_uint32le
end