Class: Pliney::MachO::MachHeader64Reader
- Inherits:
-
CommonMachHeaderReader
- Object
- Reader
- CommonMachHeaderReader
- Pliney::MachO::MachHeader64Reader
- Defined in:
- lib/pliney/macho.rb
Instance Attribute Summary collapse
-
#_reserved ⇒ Object
readonly
Returns the value of attribute _reserved.
Attributes inherited from CommonMachHeaderReader
#cpusubtype, #cputype, #filetype, #flags, #load_commands, #magic, #ncmds, #sizeofcmds
Attributes inherited from Reader
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
Constructor Details
This class inherits a constructor from Pliney::MachO::Reader
Instance Attribute Details
#_reserved ⇒ Object (readonly)
Returns the value of attribute _reserved.
323 324 325 |
# File 'lib/pliney/macho.rb', line 323 def _reserved @_reserved end |
Instance Method Details
#parse ⇒ Object
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 |