Class: Pliney::MachO::MachHeaderReader

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

Instance Attribute Summary

Attributes inherited from CommonMachHeaderReader

#cpusubtype, #cputype, #filetype, #flags, #load_commands, #magic, #ncmds, #sizeofcmds

Attributes inherited from Reader

#fh, #startpos

Instance Method Summary collapse

Methods inherited from CommonMachHeaderReader

#all_load_commands_of_type, #codesignature, #codesignature_data, #encryption_info, #find_load_command_of_type, #is_32?, #is_64?, #is_encrypted?, #loaded_libraries, #read_at, #rpaths, #segment_load_commands

Methods inherited from Reader

#initialize, parse, #rewind

Constructor Details

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

Instance Method Details

#parseObject



313
314
315
316
317
318
319
# File 'lib/pliney/macho.rb', line 313

def parse()
    super()
    unless MachO::is_macho32_magic(@magic)
        raise(ReaderError, "Unexpected magic value for Mach header: 0x%0.8x" % @magic)
    end
    _parse_load_commands()
end