39 #ifndef BLOCXX_BASESTREAMBUFFER_HPP_INCLUDE_GUARD_
40 #define BLOCXX_BASESTREAMBUFFER_HPP_INCLUDE_GUARD_
41 #include "blocxx/BLOCXX_config.h"
43 #ifdef BLOCXX_HAVE_STREAMBUF
46 #include <streambuf.h>
52 namespace BLOCXX_NAMESPACE
79 std::streamsize xsputn(
const char* s, std::streamsize n);
80 virtual int overflow(
int c);
82 virtual void initBuffers();
83 virtual void initGetBuffer();
84 virtual void initPutBuffer();
93 virtual int buffer_to_device(
const char* c,
int n);
105 virtual int buffer_from_device(
char* c,
int n);