BasicIOStream< CharT, TraitsT > Class Template Reference

#include <Pt/IOStream.h>

Input/Output stream.

Inherits basic_iostream< CharT, TraitsT >.

Public Member Functions

 BasicIOStream (BasicStreamBuffer< CharT > *sb=0)
 ~BasicIOStream ()
BasicStreamBuffer< CharT > * buffer ()
 Returns the buffer.
std::streamsize peeksome (CharT *buffer, std::streamsize n)
 Peeks bytes in the stream buffer. More...
void setBuffer (BasicStreamBuffer< CharT > *sb)
 Sets the buffer.
std::streamsize writesome (CharT *buffer, std::streamsize n)
 Write as much data as fits in buffer.

Member Function Documentation

std::streamsize peeksome ( CharT *  buffer,
std::streamsize  n 

The number of bytes that can be peeked depends on the current stream buffer get area and maybe less than requested, similar to istream::readsome().