BinaryFile
public class BinaryFile
A BinaryFile is a (mostly) architecture-independent representation of an
in-memory image file.
-
The backing buffer for this binary file.
Declaration
Swift
public let buffer: MemoryBuffer -
The kind of this binary file.
Declaration
Swift
public let kind: Kind -
The kinds of binary files known to LLVM.
See moreDeclaration
Swift
public enum Kind -
Creates a Binary File with the contents of a provided memory buffer.
Throws
BinaryFileErrorif there was an error on creation.Declaration
Swift
public init(memoryBuffer: MemoryBuffer, in context: Context = .global) throwsParameters
memoryBufferA memory buffer containing a valid binary file.
contextThe context to allocate the given binary in.
-
Creates an
ObjectFilewith 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.
BinaryFile Class Reference