class MachO::Headers::FatArch

32-bit fat binary header architecture structure. A 32-bit fat Mach-O has one or more of

these, indicating one or more internal Mach-O blobs.

@note “32-bit” indicates the fact that this structure stores 32-bit offsets, not that the

Mach-Os that it points to necessarily *are* 32-bit.

@see MachO::Headers::FatHeader

Public Instance Methods

serialize() click to toggle source

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

# File lib/macho/headers.rb, line 550
def serialize
  [cputype, cpusubtype, offset, size, align].pack(self.class.format)
end
to_h() click to toggle source

@return [Hash] a hash representation of this {FatArch}

Calls superclass method
# File lib/macho/headers.rb, line 555
def to_h
  {
    "cputype" => cputype,
    "cputype_sym" => CPU_TYPES[cputype],
    "cpusubtype" => cpusubtype,
    "cpusubtype_sym" => CPU_SUBTYPES[cputype][cpusubtype],
    "offset" => offset,
    "size" => size,
    "align" => align,
  }.merge super
end