BasicIStream< CharT, TraitsT > Class Template Reference

#include <Pt/IOStream.h>

Input stream.

Inherits basic_istream< CharT, TraitsT >.

Public Member Functions

 BasicIStream (BasicStreamBuffer< CharT > *sb=0)
 Constructor.
 
 ~BasicIStream ()
 Destructor.
 
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.
 

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().