class MachO::Headers::FatHeader
Fat binary header structure @see MachO::FatArch
Public Instance Methods
serialize()
click to toggle source
@return [String] the serialized fields of the fat header
# File lib/macho/headers.rb, line 514 def serialize [magic, nfat_arch].pack(self.class.format) end
to_h()
click to toggle source
@return [Hash] a hash representation of this {FatHeader}
Calls superclass method
# File lib/macho/headers.rb, line 519 def to_h { "magic" => magic, "magic_sym" => MH_MAGICS[magic], "nfat_arch" => nfat_arch, }.merge super end