Generic Initializer

init(_:)

Creates a new raw pointer from the given typed pointer.

Declaration

init?<T>(_ other: UnsafeMutablePointer<T>?)

Parameters

other

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

Discussion

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