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
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);
BaseStreamBuffer & operator=(const BaseStreamBuffer &arg)
std::streamsize m_bufSize
BaseStreamBuffer(const BaseStreamBuffer &arg)
BaseStreamBuffer(EDirectionFlag direction, size_t bufSize=BASE_BUF_SIZE)
Create a base stream buffer.
const size_t HTTP_BUF_SIZE
const size_t BASE_BUF_SIZE