BufferedInputStream.readFromStream

Reads elements into the given buffer, first pulling from this buffered stream's internal buffer, and then reading from the underlying stream.

struct BufferedInputStream(S, uint BufferSize = DEFAULT_BUFFER_SIZE)
readFromStream
(
E[] buffer
)

Parameters

buffer E[]

The buffer to read items to.

Return Value

The number of elements read, or -1 in case of error.

Meta