Class: Pliney::MachO::MachHeader64Reader

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

Instance Attribute Summary collapse

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 Attribute Details

#_reservedObject (readonly)

Returns the value of attribute _reserved.



323
324
325
# File 'lib/pliney/macho.rb', line 323

def _reserved
  @_reserved
end

Instance Method Details

#parseObject



324
325
326
327
328
329
330
331
# File 'lib/pliney/macho.rb', line 324

def parse()
    super()
    @_reserved = @fh.read_uint32le
    unless MachO::is_macho64_magic(@magic)
        raise(ReaderError, "Unexpected magic value for Mach 64 header: 0x%0.8x" % @magic)
    end
    _parse_load_commands()
end