MachOUniversalBinaryFile
public final class MachOUniversalBinaryFile : BinaryFile
An in-memory representation of a Mach-O universal binary file.
-
Creates an
MachOUniversalBinaryFilewith the contents of the object file at the provided path.Declaration
Swift
public convenience init(path: String) throwsParameters
pathThe absolute file path on your filesystem.
-
Creates a Mach-O universal binary file with the contents of a provided memory buffer.
Throws
BinaryFileErrorif there was an error on creation.Declaration
Swift
public override init(memoryBuffer: MemoryBuffer, in context: Context = .global) throwsParameters
memoryBufferA memory buffer containing a valid universal Mach-O file.
contextThe context to allocate the given binary in.
-
Retrieves the object file for a specific architecture, if it exists.
Throws
BinaryFileErrorif there was an error on creation.Parameters
architectureThe architecture of a Mach-O file contained in this universal binary file.
Return Value
An object file for the given architecture if it exists.
-
Represents an architecture-specific slice of a Mach-O universal binary file.
Declaration
Swift
public final class Slice : ObjectFile
MachOUniversalBinaryFile Class Reference