Update RBI files for ruby-macho.

This commit is contained in:
BrewTestBot 2022-01-12 18:14:04 +00:00
parent 847b271481
commit bb8d9f10bc
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F

View File

@ -1,9 +1,9 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `ruby-macho` gem.
# Please instead update this file by running `bin/tapioca gem ruby-macho`.
# typed: true
module MachO
class << self
def codesign!(filename); end
@ -20,6 +20,8 @@ class MachO::CPUTypeError < ::MachO::MachOError
end
class MachO::CodeSigningError < ::MachO::MachOError; end
class MachO::CompressedMachOError < ::MachO::MachOError; end
class MachO::DecompressionError < ::MachO::MachOError; end
class MachO::DylibIdMissingError < ::MachO::RecoverableModificationError
def initialize; end
@ -104,6 +106,9 @@ class MachO::HeaderPadError < ::MachO::ModificationError
end
module MachO::Headers; end
MachO::Headers::COMPRESSED_MAGIC = T.let(T.unsafe(nil), Integer)
MachO::Headers::COMP_TYPE_FASTLIB = T.let(T.unsafe(nil), Integer)
MachO::Headers::COMP_TYPE_LZSS = T.let(T.unsafe(nil), Integer)
MachO::Headers::CPU_ARCH_ABI32 = T.let(T.unsafe(nil), Integer)
MachO::Headers::CPU_ARCH_ABI64 = T.let(T.unsafe(nil), Integer)
MachO::Headers::CPU_SUBTYPES = T.let(T.unsafe(nil), Hash)
@ -220,6 +225,7 @@ MachO::Headers::MH_DYLIB = T.let(T.unsafe(nil), Integer)
MachO::Headers::MH_DYLIB_STUB = T.let(T.unsafe(nil), Integer)
MachO::Headers::MH_DYLINKER = T.let(T.unsafe(nil), Integer)
MachO::Headers::MH_EXECUTE = T.let(T.unsafe(nil), Integer)
MachO::Headers::MH_FILESET = T.let(T.unsafe(nil), Integer)
MachO::Headers::MH_FILETYPES = T.let(T.unsafe(nil), Hash)
MachO::Headers::MH_FLAGS = T.let(T.unsafe(nil), Hash)
MachO::Headers::MH_FVMLIB = T.let(T.unsafe(nil), Integer)
@ -242,6 +248,7 @@ class MachO::Headers::MachHeader < ::MachO::MachOStructure
def dylib?; end
def dylinker?; end
def executable?; end
def fileset?; end
def filetype; end
def flag?(flag); end
def flags; end
@ -269,6 +276,27 @@ MachO::Headers::MachHeader64::SIZEOF = T.let(T.unsafe(nil), Integer)
MachO::Headers::MachHeader::FORMAT = T.let(T.unsafe(nil), String)
MachO::Headers::MachHeader::SIZEOF = T.let(T.unsafe(nil), Integer)
class MachO::Headers::PrelinkedKernelHeader < ::MachO::MachOStructure
def initialize(signature, compress_type, adler32, uncompressed_size, compressed_size, prelink_version, reserved, platform_name, root_path); end
def adler32; end
def compress_type; end
def compressed_size; end
def kaslr?; end
def lzss?; end
def lzvn?; end
def platform_name; end
def prelink_version; end
def reserved; end
def root_path; end
def signature; end
def to_h; end
def uncompressed_size; end
end
MachO::Headers::PrelinkedKernelHeader::FORMAT = T.let(T.unsafe(nil), String)
MachO::Headers::PrelinkedKernelHeader::SIZEOF = T.let(T.unsafe(nil), Integer)
class MachO::JavaClassFileError < ::MachO::NotAMachOError
def initialize; end
end
@ -430,6 +458,19 @@ end
MachO::LoadCommands::EntryPointCommand::FORMAT = T.let(T.unsafe(nil), String)
MachO::LoadCommands::EntryPointCommand::SIZEOF = T.let(T.unsafe(nil), Integer)
class MachO::LoadCommands::FilesetEntryCommand < ::MachO::LoadCommands::LoadCommand
def initialize(view, cmd, cmdsize, vmaddr, fileoff, entry_id, reserved); end
def entry_id; end
def fileoff; end
def reserved; end
def to_h; end
def vmaddr; end
end
MachO::LoadCommands::FilesetEntryCommand::FORMAT = T.let(T.unsafe(nil), String)
MachO::LoadCommands::FilesetEntryCommand::SIZEOF = T.let(T.unsafe(nil), Integer)
class MachO::LoadCommands::FvmfileCommand < ::MachO::LoadCommands::LoadCommand
def initialize(view, cmd, cmdsize, name, header_addr); end
@ -762,13 +803,13 @@ class MachO::MachOFile
def change_dylib(old_name, new_name, _options = T.unsafe(nil)); end
def change_dylib_id(new_id, _options = T.unsafe(nil)); end
def change_install_name(old_name, new_name, _options = T.unsafe(nil)); end
def change_rpath(old_path, new_path, _options = T.unsafe(nil)); end
def change_rpath(old_path, new_path, options = T.unsafe(nil)); end
def command(name); end
def core?(*args, &block); end
def cpusubtype; end
def cputype; end
def delete_command(lc, options = T.unsafe(nil)); end
def delete_rpath(path, _options = T.unsafe(nil)); end
def delete_rpath(path, options = T.unsafe(nil)); end
def dsym?(*args, &block); end
def dylib?(*args, &block); end
def dylib_id; end
@ -812,10 +853,12 @@ class MachO::MachOFile
def check_cpusubtype(cputype, cpusubtype); end
def check_cputype(cputype); end
def check_filetype(filetype); end
def decompress_macho_lzvn; end
def low_fileoff; end
def populate_and_check_magic; end
def populate_load_commands; end
def populate_mach_header; end
def populate_prelinked_kernel_header; end
def update_ncmds(ncmds); end
def update_sizeofcmds(size); end
@ -872,18 +915,22 @@ end
module MachO::Sections; end
MachO::Sections::MAX_SECT_ALIGN = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_ATTRIBUTES = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_ATTRIBUTES_SYS = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_ATTRIBUTES_USR = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_ATTRIBUTES = T.let(T.unsafe(nil), Hash)
MachO::Sections::SECTION_ATTRIBUTES_MASK = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_ATTRIBUTES_SYS_MASK = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_ATTRIBUTES_USR_MASK = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_FLAGS = T.let(T.unsafe(nil), Hash)
MachO::Sections::SECTION_NAMES = T.let(T.unsafe(nil), Hash)
MachO::Sections::SECTION_TYPE = T.let(T.unsafe(nil), Integer)
MachO::Sections::SECTION_TYPES = T.let(T.unsafe(nil), Hash)
MachO::Sections::SECTION_TYPE_MASK = T.let(T.unsafe(nil), Integer)
class MachO::Sections::Section < ::MachO::MachOStructure
def initialize(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2); end
def addr; end
def align; end
def attribute?(attr_sym); end
def attributes; end
def empty?; end
def flag?(flag); end
def flags; end
@ -898,6 +945,8 @@ class MachO::Sections::Section < ::MachO::MachOStructure
def segname; end
def size; end
def to_h; end
def type; end
def type?(type_sym); end
end
class MachO::Sections::Section64 < ::MachO::Sections::Section
@ -935,6 +984,7 @@ end
module MachO::Utils
class << self
def big_magic?(num); end
def compressed_magic?(num); end
def fat_magic32?(num); end
def fat_magic64?(num); end
def fat_magic?(num); end