4#ifndef _Stroika_Foundation_Streams_Copy_h_
5#define _Stroika_Foundation_Streams_Copy_h_ 1
7#include "Stroika/Foundation/StroikaPreComp.h"
25namespace Stroika::Foundation::Streams {
32 template <
typename ELEMENT_TYPE>
33 void CopyAll (
typename InputStream::Ptr<ELEMENT_TYPE> from,
typename OutputStream::Ptr<ELEMENT_TYPE> to,
size_t bufferSize = 10 * 1024);
40 template <
typename ELEMENT_TYPE>
41 void CopyAll_OneRead (
typename InputStream::Ptr<ELEMENT_TYPE> from,
typename OutputStream::Ptr<ELEMENT_TYPE> to);
48 template <
typename ELEMENT_TYPE>
49 void CopyAll_Buffered (
typename InputStream::Ptr<ELEMENT_TYPE> from,
typename OutputStream::Ptr<ELEMENT_TYPE> to,
size_t bufferSize = 10 * 1024);
void CopyAll_Buffered(typename InputStream::Ptr< ELEMENT_TYPE > from, typename OutputStream::Ptr< ELEMENT_TYPE > to, size_t bufferSize=10 *1024)
Copy the contents of stream 'from' to stream 'to', by reading a chunk at a time - tends to do multipl...
void CopyAll_OneRead(typename InputStream::Ptr< ELEMENT_TYPE > from, typename OutputStream::Ptr< ELEMENT_TYPE > to)
Copy the contents of stream 'from' to stream 'to', by reading ALL of from into memory at once,...
void CopyAll(typename InputStream::Ptr< ELEMENT_TYPE > from, typename OutputStream::Ptr< ELEMENT_TYPE > to, size_t bufferSize=10 *1024)
Copy the contents of stream 'from' to stream 'to'.