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