StringBuffer Class Reference

#include <Pt/StringStream.h>

Unicode string stream buffer.

Inherits BasicStreamBuffer< Char >.

Public Types

typedef Char char_type
 Internal character type.
typedef std::char_traits< Chartraits_type
 Internal character traits.
typedef traits_type::int_type int_type
 Integer type.
typedef traits_type::pos_type pos_type
 Stream position type.
typedef traits_type::off_type off_type
 Stream offset type.

Public Member Functions

std::streamsize speekn (Char *buffer, std::streamsize size)
 Peeks characters in the stream buffer.
std::streamsize out_avail ()
 Returns the number of characters buffered for output.

Protected Member Functions

virtual std::streamsize showfull () override
 Returns the number of characters buffered for output.

Member Function Documentation

◆ speekn()

std::streamsize speekn ( Char * buffer,
std::streamsize size )
inherited

The number of characters that can be peeked depends on the current get area and may be less than requested, similar to istream::readsome(). The characters are not consumed.