init(mutating:)
Creates a new mutable raw pointer from the given immutable raw pointer.
Declaration
init?(mutating other: UnsafeRawPointer?)Parameters
- other:
The immutable raw pointer to convert. If
otherisnil, the result isnil.
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.