39#include "blocxx/BLOCXX_config.h"
100 int cnt = pptr() - pbase();
129 if (n < epptr() - pptr())
131 memcpy(pptr(), s, n *
sizeof(
char));
137 for (std::streamsize i = 0; i < n; i++)
139 if (sputc(s[i]) == EOF)
151 if (gptr() < egptr())
153 return static_cast<unsigned char>(*gptr());
161 return static_cast<unsigned char>(*gptr());
#define BLOCXX_ASSERT(CON)
BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(),...
std::streamsize xsputn(const char *s, std::streamsize n)
virtual void initBuffers()
virtual int buffer_to_device(const char *c, int n)
Writes the buffer to the "device".
virtual int buffer_from_device(char *c, int n)
Fill the buffer from the "device".
virtual void initPutBuffer()
virtual void initGetBuffer()
virtual int overflow(int c)
std::streamsize m_bufSize
BaseStreamBuffer(EDirectionFlag direction, size_t bufSize=BASE_BUF_SIZE)
Create a base stream buffer.