Class: MachO::Headers::FatArch64
- Inherits:
-
FatArch
- Object
- MachOStructure
- FatArch
- MachO::Headers::FatArch64
- Defined in:
- lib/macho/headers.rb
Overview
"64-bit" indicates the fact that this structure stores 64-bit offsets, not that the Mach-Os that it points to necessarily are 64-bit.
64-bit fat binary header architecture structure. A 64-bit fat Mach-O has one or more of these, indicating one or more internal Mach-O blobs.
Instance Method Summary collapse
-
#offset ⇒ Integer
The file offset to the beginning of the Mach-O data.
- #reserved ⇒ void
-
#serialize ⇒ String
The serialized fields of the fat arch.
-
#size ⇒ Integer
The size, in bytes, of the Mach-O data.
-
#to_h ⇒ Hash
A hash representation of this FatArch64.
Methods inherited from FatArch
Methods inherited from MachOStructure
bytesize, format, #initialize, new_from_bin
Constructor Details
This class inherits a constructor from MachO::MachOStructure
Instance Method Details
#offset ⇒ Integer
Returns the file offset to the beginning of the Mach-O data.
575 |
# File 'lib/macho/headers.rb', line 575 field :offset, :uint64, :endian => :big |
#reserved ⇒ void
This method returns an undefined value.
581 |
# File 'lib/macho/headers.rb', line 581 field :reserved, :uint32, :endian => :big, :default => 0 |
#serialize ⇒ String
Returns the serialized fields of the fat arch.
584 585 586 |
# File 'lib/macho/headers.rb', line 584 def serialize [cputype, cpusubtype, offset, size, align, reserved].pack(self.class.format) end |
#size ⇒ Integer
Returns the size, in bytes, of the Mach-O data.
578 |
# File 'lib/macho/headers.rb', line 578 field :size, :uint64, :endian => :big |
#to_h ⇒ Hash
Returns a hash representation of this MachO::Headers::FatArch64.
589 590 591 592 593 |
# File 'lib/macho/headers.rb', line 589 def to_h { "reserved" => reserved, }.merge super end |