Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::BasicMemoryStreamBuf< ch, tr > Class Template Reference

#include <MemoryStream.h>

+ Inheritance diagram for Poco::BasicMemoryStreamBuf< ch, tr >:
+ Collaboration diagram for Poco::BasicMemoryStreamBuf< ch, tr >:

Public Member Functions

 BasicMemoryStreamBuf (char_type *pBuffer, std::streamsize bufferSize)
 
 ~BasicMemoryStreamBuf ()
 
virtual int_type overflow (int_type)
 
virtual int_type underflow ()
 
virtual pos_type seekoff (off_type off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out)
 
virtual int sync ()
 
std::streamsize charsWritten () const
 
void reset ()
 

Protected Types

typedef std::basic_streambuf< ch, trBase
 
typedef std::basic_ios< ch, trIOS
 
typedef ch char_type
 
typedef tr char_traits
 
typedef Base::int_type int_type
 
typedef Base::pos_type pos_type
 
typedef Base::off_type off_type
 

Private Member Functions

 BasicMemoryStreamBuf ()
 
 BasicMemoryStreamBuf (const BasicMemoryStreamBuf &)
 
BasicMemoryStreamBufoperator= (const BasicMemoryStreamBuf &)
 

Private Attributes

char_type_pBuffer
 
std::streamsize _bufferSize
 

Detailed Description

template<typename ch, typename tr>
class Poco::BasicMemoryStreamBuf< ch, tr >

BasicMemoryStreamBuf is a simple implementation of a stream buffer for reading and writing from a memory area.

This streambuf only supports unidirectional streams. In other words, the BasicMemoryStreamBuf can be used for the implementation of an istream or an ostream, but not for an iostream.

Definition at line 35 of file MemoryStream.h.

Member Typedef Documentation

◆ Base

template<typename ch , typename tr >
typedef std::basic_streambuf<ch, tr> Poco::BasicMemoryStreamBuf< ch, tr >::Base
protected

Definition at line 45 of file MemoryStream.h.

◆ char_traits

template<typename ch , typename tr >
typedef tr Poco::BasicMemoryStreamBuf< ch, tr >::char_traits
protected

Definition at line 48 of file MemoryStream.h.

◆ char_type

template<typename ch , typename tr >
typedef ch Poco::BasicMemoryStreamBuf< ch, tr >::char_type
protected

Definition at line 47 of file MemoryStream.h.

◆ int_type

template<typename ch , typename tr >
typedef Base::int_type Poco::BasicMemoryStreamBuf< ch, tr >::int_type
protected

Definition at line 49 of file MemoryStream.h.

◆ IOS

template<typename ch , typename tr >
typedef std::basic_ios<ch, tr> Poco::BasicMemoryStreamBuf< ch, tr >::IOS
protected

Definition at line 46 of file MemoryStream.h.

◆ off_type

template<typename ch , typename tr >
typedef Base::off_type Poco::BasicMemoryStreamBuf< ch, tr >::off_type
protected

Definition at line 51 of file MemoryStream.h.

◆ pos_type

template<typename ch , typename tr >
typedef Base::pos_type Poco::BasicMemoryStreamBuf< ch, tr >::pos_type
protected

Definition at line 50 of file MemoryStream.h.

Constructor & Destructor Documentation

◆ BasicMemoryStreamBuf() [1/3]

template<typename ch , typename tr >
Poco::BasicMemoryStreamBuf< ch, tr >::BasicMemoryStreamBuf ( char_type * pBuffer,
std::streamsize bufferSize )
inline

Definition at line 54 of file MemoryStream.h.

◆ ~BasicMemoryStreamBuf()

template<typename ch , typename tr >
Poco::BasicMemoryStreamBuf< ch, tr >::~BasicMemoryStreamBuf ( )
inline

Definition at line 62 of file MemoryStream.h.

◆ BasicMemoryStreamBuf() [2/3]

template<typename ch , typename tr >
Poco::BasicMemoryStreamBuf< ch, tr >::BasicMemoryStreamBuf ( )
private

◆ BasicMemoryStreamBuf() [3/3]

template<typename ch , typename tr >
Poco::BasicMemoryStreamBuf< ch, tr >::BasicMemoryStreamBuf ( const BasicMemoryStreamBuf< ch, tr > & )
private

Member Function Documentation

◆ charsWritten()

template<typename ch , typename tr >
std::streamsize Poco::BasicMemoryStreamBuf< ch, tr >::charsWritten ( ) const
inline

Definition at line 149 of file MemoryStream.h.

+ Here is the caller graph for this function:

◆ operator=()

template<typename ch , typename tr >
BasicMemoryStreamBuf & Poco::BasicMemoryStreamBuf< ch, tr >::operator= ( const BasicMemoryStreamBuf< ch, tr > & )
private

◆ overflow()

template<typename ch , typename tr >
virtual int_type Poco::BasicMemoryStreamBuf< ch, tr >::overflow ( int_type )
inlinevirtual

Definition at line 66 of file MemoryStream.h.

◆ reset()

template<typename ch , typename tr >
void Poco::BasicMemoryStreamBuf< ch, tr >::reset ( )
inline

Resets the buffer so that current read and write positions will be set to the beginning of the buffer.

Definition at line 154 of file MemoryStream.h.

◆ seekoff()

template<typename ch , typename tr >
virtual pos_type Poco::BasicMemoryStreamBuf< ch, tr >::seekoff ( off_type off,
std::ios_base::seekdir way,
std::ios_base::openmode which = std::ios_base::in | std::ios_base::out )
inlinevirtual

Definition at line 76 of file MemoryStream.h.

◆ sync()

template<typename ch , typename tr >
virtual int Poco::BasicMemoryStreamBuf< ch, tr >::sync ( )
inlinevirtual

Definition at line 144 of file MemoryStream.h.

◆ underflow()

template<typename ch , typename tr >
virtual int_type Poco::BasicMemoryStreamBuf< ch, tr >::underflow ( )
inlinevirtual

Definition at line 71 of file MemoryStream.h.

Member Data Documentation

◆ _bufferSize

template<typename ch , typename tr >
std::streamsize Poco::BasicMemoryStreamBuf< ch, tr >::_bufferSize
private

Definition at line 164 of file MemoryStream.h.

◆ _pBuffer

template<typename ch , typename tr >
char_type* Poco::BasicMemoryStreamBuf< ch, tr >::_pBuffer
private

Definition at line 163 of file MemoryStream.h.


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