readAll

Continously reads an input stream into an in-memory buffer, until 0 elements could be read, or an error occurs.

DataType[]
readAll
(
StreamType
DataType
)
(
ref StreamType stream
,
uint bufferSize = 8192
)
if (
isInputStream!(StreamType, DataType)
)

Parameters

stream StreamType

The stream to read from.

bufferSize uint

The size of the internal buffer to use for reading.

Return Value

Type: DataType[]

The full contents of the stream.

Meta