Function
public enum Function : CustomStringConvertible
An enumeration describing a function.
-
A function referred to by its address.
Declaration
Swift
case address(UnsafeMutableRawPointer)
-
A function referred to by its name and (optionally) image.
If
image
isnil
, it implies that the function may be in any image.Declaration
Swift
case symbol(_: String, image: URL?)
-
Equivalent to
.symbol(name, image: URL(fileURLWithPath: image))
This initializer deliberately requires a non-nil
image
parameter, because allowingnil
would cause ambiguity between this method and the enum case when passednil
as the second parameter. To use anil
image, invokesymbol(_:String image:URL?)
instead, passingURL?.none
.Declaration
Swift
public static func symbol(_ name: String, image: String) -> Function
Parameters
name
The name of the symbol.
image
The path to the image in which the symbol is located.
Return Value
The described
Function
. -
Declaration
Swift
public var description: String { get }