Skip to content

swift_dynamicCastTypeToObjCProtocolUnconditional(____________)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_dynamicCastTypeToObjCProtocolUnconditional(_:_:_:_:_:_:)

Performs a check to determine if the type conforms the protocol(s).

@_silgen_name("swift_dynamicCastTypeToObjCProtocolUnconditional")
public func swift_dynamicCastTypeToObjCProtocolUnconditional(
    _ type: Any.Type,
    _ protocolCount: Int,
    _ protocols: UnsafeRawBufferPointer,
    _ fileName: UnsafePointer<CChar>?,
    _ lineNumber: UInt?,
    _ columnNumber: UInt?
) -> Any.Type?

Parameters

  • object: The objective-c type to perform the cast on.
  • protocolCount: The amount of protocols to check conformance of.
  • protocols: An array of protocols to check conformance of.
  • fileName: The source filename from which to report failure.
  • lineNumber: The source line from which to report failure.
  • column: The source column from which to report failure.

Returns

The type when successful, or aborts otherwise.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally