transferTo

Transfers elements from an input stream to an output stream, doing so continuously until the input stream reads 0 elements or an error occurs. The streams are not closed after transfer completes.

void
transferTo
(
InputStreamType
OutputStreamType
DataType
)
(
ref InputStreamType input
,
ref OutputStreamType output
,
uint bufferSize = 8192
)
if (
isInputStream!(InputStreamType, DataType) &&
isOutputStream!(OutputStreamType, DataType)
)

Parameters

input InputStreamType

The input stream to read from.

output OutputStreamType

The output stream to write to.

bufferSize uint

The size of the internal buffer to use for reading.

Meta