Initializer

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 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.