CopyTo()

Stream::CopyTo(const SharedPtr<Stream>&) method

Copies bytes to the specified stream.

void System::IO::Stream::CopyTo(const SharedPtr<Stream> &destination)

Arguments

ParameterTypeDescription
destinationconst SharedPtr<Stream>&Stream to which data will be copied.

Stream::CopyTo(const SharedPtr<Stream>&, int32_t) method

Copies bytes to the specified stream, using the specified buffer size.

void System::IO::Stream::CopyTo(const SharedPtr<Stream> &destination, int32_t buffer_size)

Arguments

ParameterTypeDescription
destinationconst SharedPtr<Stream>&Stream to which data will be copied.
buffer_sizeint32_tSize of the buffer.

See Also