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.