toOpaque()
Unsafely converts an unmanaged class reference to a pointer.
Declaration
func toOpaque() -> UnsafeMutableRawPointerReturn Value
An opaque pointer to the value of this unmanaged reference.
Discussion
This operation does not change reference counts.
let str0 = "boxcar" as CFString
let bits = Unmanaged.passUnretained(str0)
let ptr = bits.toOpaque()