class Pliney::MachO::FatArchReader

Constants

CPU_ARCH_ABI64

Attributes

align[R]
cpusubtype[R]
cputype[R]
offset[R]
size[R]

Public Instance Methods

macho_reader() click to toggle source
# File lib/pliney/macho.rb, line 200
def macho_reader
    if (@cputype & CPU_ARCH_ABI64) == 0
        return MachHeaderReader
    else
        return MachHeader64Reader
    end
end
parse() click to toggle source
Calls superclass method Pliney::MachO::Reader::parse
# File lib/pliney/macho.rb, line 191
def parse()
    super()
    @cputype = @fh.read_uint32
    @cpusubtype = @fh.read_uint32
    @offset = @fh.read_uint32
    @size = @fh.read_uint32
    @align = @fh.read_uint32
end