Skip to content

swift_dynamicCastObjCClassUnconditional(__________)

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

swift_dynamicCastObjCClassUnconditional(_:_:_:_:_:)

Checked Objective-C-style dynamic cast to a class type.

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

Parameters

  • object: The object to cast into a new type.
  • targetType: The new type to cast the object into.
  • 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

A pointer to the cast object when successful, or aborts otherwise.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally