Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::StreamCopier Class Reference

#include <StreamCopier.h>

Static Public Member Functions

static std::streamsize copyStream (std::istream &istr, std::ostream &ostr, std::size_t bufferSize=8192)
 
static std::streamsize copyStreamUnbuffered (std::istream &istr, std::ostream &ostr)
 
static std::streamsize copyToString (std::istream &istr, std::string &str, std::size_t bufferSize=8192)
 

Detailed Description

This class provides static methods to copy the contents from one stream into another.

Definition at line 30 of file StreamCopier.h.

Member Function Documentation

◆ copyStream()

static std::streamsize Poco::StreamCopier::copyStream ( std::istream & istr,
std::ostream & ostr,
std::size_t bufferSize = 8192 )
static
+ Here is the caller graph for this function:

◆ copyStreamUnbuffered()

static std::streamsize Poco::StreamCopier::copyStreamUnbuffered ( std::istream & istr,
std::ostream & ostr )
static

Writes all bytes readable from istr to ostr, using an internal buffer.

Returns the number of bytes copied.

◆ copyToString()

static std::streamsize Poco::StreamCopier::copyToString ( std::istream & istr,
std::string & str,
std::size_t bufferSize = 8192 )
static

Writes all bytes readable from istr to ostr.

Returns the number of bytes copied.


The documentation for this class was generated from the following file: