Contents

CFBundleGetFunctionPointerForName(_:_:)

Returns a pointer to a function in a bundle’s executable code using the function name as the search key.

Declaration

func CFBundleGetFunctionPointerForName(_ bundle: CFBundle!, _ functionName: CFString!) -> UnsafeMutableRawPointer!

Parameters

  • bundle:

    The bundle to examine.

  • functionName:

    The name of the function to locate.

Return Value

A pointer to a function in a bundle’s executable code, or NULL if functionName cannot be found. Ownership follows the The Get Rule.

Discussion

Calling this function will cause the bundle’s code to be loaded if necessary.

See Also

Managing Executable Code