Class: MachO::FatHeader
- Inherits:
-
MachOStructure
- Object
- MachOStructure
- MachO::FatHeader
- Defined in:
- lib/macho/headers.rb
Overview
Fat binary header structure
Constant Summary collapse
- FORMAT =
"VV"
- SIZEOF =
8
Instance Attribute Summary collapse
-
#magic ⇒ Fixnum
readonly
The magic number of the header (and file).
-
#nfat_arch ⇒ Fixnum
readonly
The number of fat architecture structures following the header.
Instance Method Summary collapse
-
#initialize(magic, nfat_arch) ⇒ FatHeader
constructor
private
A new instance of FatHeader.
Methods inherited from MachOStructure
Constructor Details
#initialize(magic, nfat_arch) ⇒ FatHeader
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 FatHeader.
173 174 175 176 |
# File 'lib/macho/headers.rb', line 173 def initialize(magic, nfat_arch) @magic = magic @nfat_arch = nfat_arch end |
Instance Attribute Details
#magic ⇒ Fixnum (readonly)
Returns the magic number of the header (and file).
164 165 166 |
# File 'lib/macho/headers.rb', line 164 def magic @magic end |
#nfat_arch ⇒ Fixnum (readonly)
Returns the number of fat architecture structures following the header.
167 168 169 |
# File 'lib/macho/headers.rb', line 167 def nfat_arch @nfat_arch end |