Function

CFReadStreamCopyError(_:)

Returns the error associated with a stream.

Declaration

func CFReadStreamCopyError(_ stream: CFReadStream!) -> CFError!

Parameters

stream

The stream to examine.

Return Value

A CFError object that describes the current problem with stream, or NULL if there is no error. Ownership follows the The Create Rule.

See Also

Examining Stream Properties

func CFReadStreamGetBuffer(CFReadStream!, CFIndex, UnsafeMutablePointer<CFIndex>!) -> UnsafePointer<UInt8>!

Returns a pointer to a stream’s internal buffer of unread data, if possible.

func CFReadStreamHasBytesAvailable(CFReadStream!) -> Bool

Returns a Boolean value that indicates whether a readable stream has data that can be read without blocking.