Function

objc_copyProtocolList(_:)

Returns an array of all the protocols known to the runtime.

Declaration

func objc_copyProtocolList(_ outCount: UnsafeMutablePointer<UInt32>!) -> AutoreleasingUnsafeMutablePointer<Protocol?>!

Parameters

outCount

Upon return, contains the number of protocols in the returned array.

Return Value

A C array of all the protocols known to the runtime. The array contains *outCount pointers followed by a NULL terminator. You must free the list with free().

Discussion

This function acquires the runtime lock.