BufferedInputStream

A buffered wrapper around another input stream, that buffers data that's been read into an internal buffer, so that calls to readToStream don't all necessitate reading from the underlying resource.

struct BufferedInputStream (
S
uint BufferSize = DEFAULT_BUFFER_SIZE
) if (
isSomeInputStream!S
) {}

Constructors

this
this(S stream)

Constructs a buffered input stream to buffer reads from the given stream.

Members

Functions

closeStream
OptionalStreamError closeStream()
Undocumented in source. Be warned that the author may not have intended to support it.
readFromStream
StreamResult readFromStream(E[] buffer)

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

Meta