CFURLCreateBookmarkDataFromFile(_:_:_:)
Initializes and returns bookmark data derived from a file pointed to by a specified URL.
Declaration
func CFURLCreateBookmarkDataFromFile(_ allocator: CFAllocator!, _ fileURL: CFURL!, _ errorRef: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFData>!Parameters
- allocator:
The allocator to use to allocate memory for the new
CFURLobject. PassNULLor Kcfallocatordefault to use the current default allocator. - fileURL:
The file URL.
- errorRef:
The error that occurred in the case that the bookmark data cannot be created.
Return Value
The bookmark data for the file, or NULL if an error occurs.