12#ifndef OPENVPN_BUFFER_BUFSTREAM_H 
   13#define OPENVPN_BUFFER_BUFSTREAM_H 
   32    std::streamsize showmanyc() 
override;
 
   33    std::streamsize xsgetn(
char* s, std::streamsize n) 
override;
 
   34    int underflow() 
override;
 
   36    int pbackfail(
int c = EOF) 
override;
 
   40    std::streamsize 
xsputn(
const char *s, std::streamsize n)
 override 
   42        buf.
write((
unsigned char *)s, (
size_t)n);
 
 
   50            unsigned char uc = (
unsigned char)c;
 
 
 
BufferStreamOut(Buffer &buffer)
 
int overflow(int c=EOF) override
 
std::streamsize xsputn(const char *s, std::streamsize n) override
 
BufferStream(Buffer &buffer)
 
void push_back(const T &value)
Append a T object to the end of the array, resizing the array if necessary.
 
void write(const T *data, const size_t size)
Write data to the buffer.