Instance Property

nonretainedObjectValue

The value as a non-retained pointer to an object.

Declaration

var nonretainedObjectValue: Any? { get }

Discussion

If the value was not created to hold a pointer-sized data item, the result is undefined.

See Also

Working with Pointer and Object Values

init(pointer: UnsafeRawPointer?)

Creates a value object containing the specified pointer.

init(nonretainedObject: Any?)

Creates a value object containing the specified object.

var pointerValue: UnsafeMutableRawPointer?

Returns the value as an untyped pointer.