CFPropertyListCreateWithData(_:_:_:_:_:)
Creates a property list from a given CFData object.
Declaration
func CFPropertyListCreateWithData(_ allocator: CFAllocator!, _ data: CFData!, _ options: CFOptionFlags, _ format: UnsafeMutablePointer<CFPropertyListFormat>!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFPropertyList>!Parameters
- allocator:
The allocator to use to allocate memory for the new property list object. Pass
NULLor kCFAllocatorDefault to use the current default allocator. - data:
A CFData object containing a serialized representation of a property list.
- options:
A Cfpropertylistmutabilityoptions constant to specify the mutability of the returned property list—see Property_list_mutability_options for possible values.
- format:
If this parameter is non-
NULL, on return it will be set to the format of the data. See Cfpropertylistformat for possible values. - error:
If this parameter is non-
NULL, if an error occurs, on return this will contain a CFError error describing the problem. Ownership follows the 20001148 103029.
Return Value
A new property list created from the data in data. If an error occurs while parsing the data, returns NULL. Ownership follows the The Create Rule.