Skip to content

swift_dynamicCastObjCProtocolUnconditional(____________)

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

swift_dynamicCastObjCProtocolUnconditional(_:_:_:_:_:_:)

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

@_silgen_name("swift_dynamicCastObjCProtocolUnconditional")
public func swift_dynamicCastObjCProtocolUnconditional(
    _ object: UnsafeRawPointer,
    _ protocolCount: Int,
    _ protocols: UnsafeRawBufferPointer,
    _ fileName: UnsafePointer<CChar>?,
    _ lineNumber: UInt?,
    _ columnNumber: UInt?
) -> UnsafeRawPointer

Parameters

  • object: The objective-c object 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 object when successful, or aborts otherwise.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally