![]() |
CFNumberCreate |
||||
Header: | CFNumber.h | Carbon status: | Supported | |
Creates a CFNumber object using the specified value.
CFNumberRef CFNumberCreate ( CFAllocatorRef allocator, CFNumberType theType, const void *valuePtr );
The memory allocator you wish to use. Pass kCFAllocatorDefault to use the default allocator.
A constant specifying the data type of the value to convert. See CFNumber Type Flags for a list of possible values.
A pointer to the value wish to convert.
The newly created CFNumber object.0
The type specified in the call to CFNumberCreate is not necessarily preserved when creating a new CFNumber object. The CFNumber will be created using whatever internal storage type the creation function deems appropriate. Use the function CFNumberGetType to find out what type the CFNumber object used to store your value.
Supported in Carbon. Available in CarbonLib 1.0 and later when CoreFoundationLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by CoreFoundationLib 1.0 and later.