hasBytesAvailable
A Boolean value that indicates whether the receiver has bytes available to read.
Declaration
var hasBytesAvailable: Bool { get }Discussion
true if the receiver has bytes available to read, otherwise false. May also return true if a read must be attempted in order to determine the availability of bytes.