class MachO::Headers::PrelinkedKernelHeader

Prelinked kernel/“kernelcache” header structure

Public Instance Methods

kaslr?() click to toggle source

@return [Boolean] whether this prelinked kernel supports KASLR

# File lib/macho/headers.rb, line 763
def kaslr?
  prelink_version >= 1
end
lzss?() click to toggle source

@return [Boolean] whether this prelinked kernel is compressed with LZSS

# File lib/macho/headers.rb, line 768
def lzss?
  compress_type == COMP_TYPE_LZSS
end
lzvn?() click to toggle source

@return [Boolean] whether this prelinked kernel is compressed with LZVN

# File lib/macho/headers.rb, line 773
def lzvn?
  compress_type == COMP_TYPE_FASTLIB
end
to_h() click to toggle source

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

Calls superclass method
# File lib/macho/headers.rb, line 778
def to_h
  {
    "signature" => signature,
    "compress_type" => compress_type,
    "adler32" => adler32,
    "uncompressed_size" => uncompressed_size,
    "compressed_size" => compressed_size,
    "prelink_version" => prelink_version,
    "reserved" => reserved,
    "platform_name" => platform_name,
    "root_path" => root_path,
  }.merge super
end