Initializerswift 6.0.3Swift

init(_:)

Creates a new raw pointer from the given mutable raw pointer.

init?(_ other: UnsafeMutableRawPointer?)

Parameters

other

The mutable raw pointer to convert. If other is nil, the result is nil.

Use this initializer to explicitly convert other to an UnsafeRawPointer instance. This initializer creates a new pointer to the same address as other and performs no allocation or copying.