StructureSwift
OpaquePointer
A wrapper around an opaque C pointer.
@frozen struct OpaquePointer
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.
@frozen struct OpaquePointer
Opaque pointers are used to represent C pointers to types that cannot be represented in Swift, such as incomplete struct types.
init?<T>(UnsafePointer<T>?)
Converts a typed UnsafePointer
to an opaque C pointer.
init(UnsafeRawPointer)
init(UnsafeMutableRawPointer)
init?<T>(UnsafeMutablePointer<T>?)
Converts a typed UnsafeMutablePointer
to an opaque C pointer.
init<T>(UnsafeMutablePointer<T>)
Converts a typed UnsafeMutablePointer
to an opaque C pointer.
init?(UnsafeMutableRawPointer?)
init?(UnsafeRawPointer?)
init<T>(UnsafePointer<T>)
Converts a typed UnsafePointer
to an opaque C pointer.
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.
func hash(into: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
static func != (Self, Self) -> Bool
static func == (OpaquePointer, OpaquePointer) -> Bool
Returns a Boolean value indicating whether two values are equal.