Constructors

Constructs an object of type streambuf.

  explicit strstreambuf(streamsize alsize_arg = 0);

  strstreambuf(void* (*palloc_arg)(size_t), 

  void (*pfree_arg)(void*)); 

Dynamic constructors

  strstreambuf(char* gnext_arg, streamsize n,  char* pbeg_arg = 0);
  
  strstreambuf(const char* gnext_arg, streamsize n);

  strstreambuf(signed char* gnext_arg, 

  streamsize n, signed char* pbeg_arg = 0);

  strstreambuf(const signed char* gnext_arg,  streamsize n);

  strstreambuf(unsigned char* gnext_arg,  streamsize n, unsigned char* pbeg_arg = 0);

  strstreambuf(const unsigned char* gnext_arg,   streamsize n);  
Remarks

The constructor sets all pointer member objects to null pointers.

The strstreambuf object is used usually for an intermediate storage object for input and output. The overloaded constructor that is used determines the attributes of the array object when it is created. These might be allocated, or dynamic and are stored in a bitmask type. The first two constructors listed allow for dynamic allocation. The constructors with character array arguments will use that character array for a buffer.