Initializer

init(_:)

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

Declaration

init(_ other: UnsafeMutableRawPointer)

Parameters

other

The mutable raw pointer to convert.

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.