Contents

CFReadStreamHasBytesAvailable(_:)

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

Declaration

func CFReadStreamHasBytesAvailable(_ stream: CFReadStream!) -> Bool

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