Function

CFBundleGetDataPointerForName(_:_:)

Returns a data pointer to a symbol of the given name.

Declaration

func CFBundleGetDataPointerForName(_ bundle: CFBundle!, _ symbolName: CFString!) -> UnsafeMutableRawPointer!

Parameters

bundle

The bundle to examine.

symbolName

The name of the symbol you are searching for.

Return Value

A data pointer to a symbol named symbolName in bundle, or NULL if symbolName cannot be found. Ownership follows the The Get Rule.

See Also

Managing Executable Code

func CFBundleGetFunctionPointerForName(CFBundle!, CFString!) -> UnsafeMutableRawPointer!

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

func CFBundleGetFunctionPointersForNames(CFBundle!, CFArray!, UnsafeMutablePointer<UnsafeMutableRawPointer?>!)

Constructs a function table containing pointers to all of the functions found in a bundle’s main executable code.