ObjectFile
public class ObjectFile
An in-memory representation of a format-independent object file.
-
Creates an
ObjectFile
with the contents of a provided memory buffer.Declaration
Swift
public init?(memoryBuffer: MemoryBuffer)
Parameters
memoryBuffer
A memory buffer containing a valid binary object file.
-
Creates an
ObjectFile
with the contents of the object file at the provided path.Declaration
Swift
public convenience init?(path: String)
Parameters
path
The absolute file path on your filesystem.
-
Returns a sequence of all the sections in this object file.
Declaration
Swift
public var sections: SectionSequence { get }
-
Returns a sequence of all the symbols in this object file.
Declaration
Swift
public var symbols: SymbolSequence { get }