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.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Upon return, contains a pointer to a read buffer. The buffer is only valid until the next stream operation is performed.
Upon return, contains the number of bytes available.
true if the buffer is available, otherwise
NSInput may return
false if this operation is not appropriate for the stream type.