A wrapper around an opaque C pointer.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
Overview
Opaque pointers are used to represent C pointers to types that cannot be represented in Swift, such as incomplete struct types.
A wrapper around an opaque C pointer.
SDK
Framework
Opaque pointers are used to represent C pointers to types that cannot be represented in Swift, such as incomplete struct types.
init<T>(Unsafe Pointer<T>)
Converts a typed Unsafe
to an opaque C pointer.
init<T>(Unsafe Mutable Pointer<T>)
Converts a typed Unsafe
to an opaque C pointer.
init?<T>(Unsafe Pointer<T>?)
Converts a typed Unsafe
to an opaque C pointer.
init?<T>(Unsafe Mutable Pointer<T>?)
Converts a typed Unsafe
to an opaque C pointer.
init?(bit Pattern: Int)
Creates an Opaque
from a given address in memory.
init?(bit Pattern: UInt)
Creates an Opaque
from a given address in memory.
var debug Description: String
A textual representation of the pointer, suitable for debugging.
var hash Value: Int
The hash value.
func hash(into: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
static func != (Opaque Pointer, Opaque Pointer) -> Bool
Returns a Boolean value indicating whether two values are not equal.
static func == (Opaque Pointer, Opaque Pointer) -> Bool
Returns a Boolean value indicating whether two values are equal.
struct Autoreleasing Unsafe Mutable Pointer
A mutable pointer-to-ObjC-pointer argument.