Creates a new pointer from the given address, specified as a bit pattern.
SDK
- Xcode 11.2+
Framework
- Swift Standard Library
Declaration
init?(bitPattern: Int)
Parameters
bitPattern
A bit pattern to use for the address of the new pointer. If
bit
is zero, the result isPattern nil
.
Discussion
The address passed as bit
must have the correct alignment for the pointer’s Pointee
type. That is, bit
must be 0
.