An array of bytes that was provided by the creator of the stream. Elements buf[0] through buf[count-1] are the only bytes that can ever be read from the stream; element buf[pos] is the next byte to be read.
buf[0]
buf[count-1]
buf[pos]
Diagram: InputStream