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.
Constant Summary collapse
- FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Note:Always big endian.
"L>2Q>2L>2".freeze
- SIZEOF =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
32
Instance Attribute Summary collapse
- #reserved ⇒ void readonly
Attributes inherited from FatArch
#align, #cpusubtype, #cputype, #offset, #size
Instance Method Summary collapse
-
#initialize(cputype, cpusubtype, offset, size, align, reserved = 0) ⇒ FatArch64
constructor
private
A new instance of FatArch64.
-
#serialize ⇒ String
The serialized fields of the fat arch.
-
#to_h ⇒ Hash
A hash representation of this FatArch64.
Methods inherited from MachOStructure
Constructor Details
#initialize(cputype, cpusubtype, offset, size, align, reserved = 0) ⇒ FatArch64
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FatArch64.
592 593 594 595 |
# File 'lib/macho/headers.rb', line 592 def initialize(cputype, cpusubtype, offset, size, align, reserved = 0) super(cputype, cpusubtype, offset, size, align) @reserved = reserved end |
Instance Attribute Details
#reserved ⇒ void (readonly)
This method returns an undefined value.
580 581 582 |
# File 'lib/macho/headers.rb', line 580 def reserved @reserved end |
Instance Method Details
#serialize ⇒ String
Returns the serialized fields of the fat arch.
598 599 600 |
# File 'lib/macho/headers.rb', line 598 def serialize [cputype, cpusubtype, offset, size, align, reserved].pack(FORMAT) end |
#to_h ⇒ Hash
Returns a hash representation of this MachO::Headers::FatArch64.
603 604 605 606 607 |
# File 'lib/macho/headers.rb', line 603 def to_h { "reserved" => reserved, }.merge super end |