Instance Property

hasBytesAvailable

A Boolean value that indicates whether the receiver has bytes available to read.

Declaration

@property(readonly) BOOL hasBytesAvailable;

Discussion

YES if the receiver has bytes available to read, otherwise NO. May also return YES if a read must be attempted in order to determine the availability of bytes.

See Also

Using Streams

- read:maxLength:

Reads up to a given number of bytes into a given buffer.

- getBuffer:length:

Returns by reference a pointer to a read buffer and, by reference, the number of bytes available, and returns a Boolean value that indicates whether the buffer is available.