Creates a new value with the bit pattern of the given pointer.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
init<P>(bitPattern pointer: P?) where P : _Pointer
Parameters
pointerThe pointer to use as the source for the new integer.
Discussion
The new value represents the address of the pointer passed as pointer. If pointer is nil, the result is 0.