Function

CFReadStreamHasBytesAvailable

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

Declaration

Boolean CFReadStreamHasBytesAvailable(CFReadStreamRef stream);

Parameters

stream

The stream to examine.

Return Value

TRUE if data can be read from stream without blocking, otherwise FALSE. If stream cannot tell if data is available without actually trying to read the data, this function returns TRUE.

See Also

Examining Stream Properties

CFReadStreamCopyProperty

Returns the value of a property for a stream.

CFReadStreamGetBuffer

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

CFReadStreamCopyError

Returns the error associated with a stream.

CFReadStreamGetError

Returns the error status of a stream.

CFReadStreamGetStatus

Returns the current state of a stream.