162 int sgetn (
char* b_,
int len_);
179 int sputn (
char* b_,
int len_);
218 char*
egptr ()
const;
222 void setg (
char* gbeg_,
char* gnext_,
char* gend_);
229 char*
pbase ()
const;
242 char*
epptr ()
const;
246 void setp (
char* pbeg_,
char* pend_);
262 void setb (
char* b_,
char* eb_,
int del_);
309 virtual int xsgetn (
char* b_,
int len_);
341 virtual int uflow ();
351 virtual int xsputn (
const char* b_,
int len_);
559 sgetn (
char* data_,
int len_)
563 return xsgetn (data_, len_);
579 sputn (
char* b_,
int len_)
588 setp (
char* pbeg_,
char* pend_)
A collection of assert function wrappers.
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
char * pptr() const
Returns a pointer to the beginning of the put area, and thus to the location of the next character th...
char * base() const
Returns the lowest possible value for gptr() - the beginning of the get area.
virtual int underflow()
This function is called to supply characters for input (from some source) when the get area is empty,...
void setp(char *pbeg_, char *pend_)
Set put area pointers.
virtual Streambuf * setbuf(char *p_, int len_)
Performs an operation that is defined separately for each class derived from Streambuf.
virtual int showmanyc()
The morphemes of showmanyc are "es-how-many-see", not "show-man-ic".
virtual int overflow(int c=EOF)
This function is called to consume characters (flush them to output), typically when the put area is ...
char * epptr() const
Returns a pointer just past the end of the put area, the maximum possible value for pptr().
int sputc(char c_)
This function stores c just after the put pointer, and advances the pointer one position,...
Streambuf & operator=(const Streambuf &)
char * egptr() const
Returns a pointer just past the end of the get area, the maximum possible value for gptr().
static const int MAXTCPFRAMESZ
Size of the internal input/output buffer.
Streambuf()
The default constructor is protected for class Streambuf to asssure that only objects for classes der...
virtual int doallocate()
This function is called by allocate when unbuffered() is zero and base() is zero.
virtual int xsgetn(char *b_, int len_)
Assigns up to len_ characters to successive elements of the array whose first element is designated b...
char * pbase() const
Returns a pointer to the beginning fo the space available for the put area, the lowest possible value...
virtual int uflow()
Reads the characters from the input sequence, if possible, and moves the stream position past it,...
int sbumpc()
This function should probably have been called `‘sgetc’'.
void setb(char *b_, char *eb_, int del_)
Establish the reserve area (buffer).
void pbump(int n_)
Advances the next pointer for the output sequence by n_.
virtual int sync()
This function synchronizes the streambuf with its actual stream of characters.
int in_avail()
This function returns the number of characters immediately available in the get area.
int sgetc()
This function returns the character after the get pointer, or EOF if the get pointer is at the end of...
Streambuf(const Streambuf &)
char * gptr() const
Returns a pointer to the beginning of the get area, and thus to the next character to be fetched (if ...
Streambuf * pubsetbuf(char *s_, int n_)
Set buffer.
int sputn(char *b_, int len_)
From the location pointed to by ptr, stores exactly len characters after the put pointer,...
void setg(char *gbeg_, char *gnext_, char *gend_)
Set get area pointers.
virtual int xsputn(const char *b_, int len_)
Writes up to len_ characters to the output sequence as if by repeated calls to sputc (c).
int sgetn(char *b_, int len_)
This function gets the next len_ characters following the get pointer, copying them to the char array...
int snextc()
This function moves the get pointer forward one position, then returns the character after the get ...
@ STRMBUFTRACE
Extended Streambuf & friends messages