CFFileDescriptorCreate(_:_:_:_:_:)
Creates a new CFFileDescriptor.
Declaration
func CFFileDescriptorCreate(_ allocator: CFAllocator!, _ fd: CFFileDescriptorNativeDescriptor, _ closeOnInvalidate: Bool, _ callout: CFFileDescriptorCallBack!, _ context: UnsafePointer<CFFileDescriptorContext>!) -> CFFileDescriptor!Parameters
- allocator:
The allocator to use to allocate memory for the new file descriptor object. Pass
NULLor kCFAllocatorDefault to use the current default allocator. - fd:
The file descriptor for the new CFFileDescriptor.
- closeOnInvalidate:
trueif the new CFFileDescriptor should closefdwhen it is invalidated, otherwisefalse. - callout:
The CFFileDescriptorCallBack for the new CFFileDescriptor.
- context:
Contextual information for the new CFFileDescriptor.
Return Value
A new CFFileDescriptor or NULL if there was a problem creating the object. Ownership follows the The Create Rule.