Function

CFFileDescriptorInvalidate(_:)

Invalidates a CFFileDescriptor object.

Declaration

func CFFileDescriptorInvalidate(_ f: CFFileDescriptor!)

Parameters

f

A CFFileDescriptor.

Discussion

Once invalidated, the CFFileDescriptor object will no longer be read from or written to at the Core Fundation level.

If you passed true for the closeOnInvalidate parameter when you called CFFileDescriptorCreate(_:_:_:_:_:), this function also closes the underlying file descriptor. If you passed false, you must close the descriptor yourself after invalidating the CFFileDescriptor object.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software