StructureSwift5.9.0
OpaquePointer
A wrapper around an opaque C pointer.
@frozen struct OpaquePointer
Opaque pointers are used to represent C pointers to types that cannot be represented in Swift, such as incomplete struct types.
Citizens in Swift
Conformances
protocol CVarArg
A type whose instances can be encoded, and appropriately passed, as elements of a C
va_list
.protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Members
init<T>(UnsafePointer
<T>) Converts a typed
UnsafePointer
to an opaque C pointer.init(UnsafeRawPointer
) init?<T>(UnsafePointer
<T>?) Converts a typed
UnsafePointer
to an opaque C pointer.init?(UnsafeRawPointer
?) init?<T>(UnsafeMutablePointer
<T>?) Converts a typed
UnsafeMutablePointer
to an opaque C pointer.init?(UnsafeMutableRawPointer
?) init<T>(UnsafeMutablePointer
<T>) Converts a typed
UnsafeMutablePointer
to an opaque C pointer.init(UnsafeMutableRawPointer
) init?(bitPattern: Int
) Creates an
OpaquePointer
from a given address in memory.init?(bitPattern: UInt
) Creates an
OpaquePointer
from a given address in memory.var debugDescription: String
A textual representation of the pointer, suitable for debugging.
static func == (OpaquePointer, OpaquePointer
) -> Bool func hash(into: inout Hasher
) Hashes the essential components of this value by feeding them into the given hasher.