CFNumberGetValue(_:_:_:)
Obtains the value of a CFNumber object cast to a specified type.
Declaration
func CFNumberGetValue(_ number: CFNumber!, _ theType: CFNumberType, _ valuePtr: UnsafeMutableRawPointer!) -> BoolParameters
- number:
The CFNumber object to examine.
- theType:
A constant that specifies the data type to return. See Cfnumbertype for a list of possible values.
- valuePtr:
On return, contains the value of
number.
Return Value
true if the operation was successful, otherwise false.
Discussion
If the argument type differs from the return type, and the conversion is lossy or the return value is out of range, then this function passes back an approximate value in valuePtr and returns false.