Skip to content

swift_dynamicCastClassUnconditional(__________)

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

swift_dynamicCastClassUnconditional(_:_:_:_:_:)

Unconditional, checked dynamic cast to a Swift class type.

@_silgen_name("swift_dynamicCastClassUnconditional")
public func swift_dynamicCastClassUnconditional(
    _ object: UnsafeRawPointer,
    _ targetType: AnyObject.Type,
    _ fileName: UnsafePointer<CChar>?,
    _ lineNumber: UInt?,
    _ column: UInt?
) -> UnsafeRawPointer

Aborts of the object isn't of the target type.

Parameters

  • object: The object ot cast
  • targetType: The type to which we are casting, which is known to be a native swift class type
  • 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 cast object.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally