class MachO::Headers::FatHeader

Fat binary header structure @see MachO::FatArch

Constants

FORMAT

always big-endian @see MachOStructure::FORMAT @api private

SIZEOF

@see MachOStructure::SIZEOF @api private

Attributes

magic[R]

@return [Fixnum] the magic number of the header (and file)

nfat_arch[R]

@return [Fixnum] the number of fat architecture structures following the header

Public Class Methods

new(magic, nfat_arch) click to toggle source

@api private

# File lib/macho/headers.rb, line 469
def initialize(magic, nfat_arch)
  @magic = magic
  @nfat_arch = nfat_arch
end

Public Instance Methods

serialize() click to toggle source

@return [String] the serialized fields of the fat header

# File lib/macho/headers.rb, line 475
def serialize
  [magic, nfat_arch].pack(FORMAT)
end