init(_:)
Creates a new raw pointer from the given typed pointer.
Declaration
init?<T>(_ other: UnsafePointer<T>?) where T : ~CopyableParameters
- other:
The typed pointer to convert. If
otherisnil, the result isnil.
Discussion
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.