CMMetadataCreateKeyFromIdentifierAsCFData(allocator:identifier:keyOut:)
Creates a copy of the key by using an identifier, and results in a core foundation data object.
Declaration
func CMMetadataCreateKeyFromIdentifierAsCFData(allocator: CFAllocator?, identifier: CFString, keyOut: UnsafeMutablePointer<CFData?>) -> OSStatusParameters
- allocator:
The allocator to use for creating the identifier.
- identifier:
The identifier to be inspected.
- keyOut:
Upon return, a pointer to the key data that was used to create the identifier.
Return Value
If successful, a nonzero result code. See Metadata Identifier Error Codes.
Discussion
The bytes in the CFData correspond to how they are serialized in the file.