ObjectFile
public class ObjectFile : BinaryFile
An in-memory representation of a format-independent object file.
-
Creates an object 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 object file.
contextThe context to allocate the given binary in.
-
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 }
ObjectFile Class Reference