Stream.copyTo

Copies data from the current position in this stream to the end of this stream, into the given stream. The given stream is written to using it's current position as well.

class Stream
void
copyTo
(,
scope ubyte[] buffer
)

Parameters

to Stream

The Stream to copy the data to.

buffer ubyte[]

The buffer used to temporarily store the data as it's being copied over. This buffer also determines how many bytes are copied at a time.

Meta