Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvMiniBuffer Class Reference

#include <wvbuffer.h>

List of all members.

Public Methods

 WvMiniBuffer (size_t _size)
 ~WvMiniBuffer ()
size_t total () const
size_t used () const
size_t free () const
void zap ()
unsigned char * get (size_t num)
void unget (size_t num)
unsigned char * alloc (size_t num)
void unalloc (size_t num)
void put (const void *data, size_t num)
size_t strchr (unsigned char ch) const
size_t strchr (char ch) const
size_t match (const unsigned char chlist[], size_t numch, bool reverse=false) const
size_t match (const char chlist[], bool reverse=false) const
 WvMiniBuffer (size_t _size)
 ~WvMiniBuffer ()
size_t total () const
size_t used () const
size_t free () const
void zap ()
unsigned char * get (size_t num)
void unget (size_t num)
unsigned char * alloc (size_t num)
void unalloc (size_t num)
void put (const void *data, size_t num)
size_t strchr (unsigned char ch) const
size_t strchr (char ch) const
size_t match (const unsigned char chlist[], size_t numch, bool reverse=false) const
size_t match (const char chlist[], bool reverse=false) const

Private Attributes

unsigned char * buffer
unsigned char * head
unsigned char * tail
size_t size
unsigned char * buffer


Constructor & Destructor Documentation

WvMiniBuffer::WvMiniBuffer size_t    _size [inline]
 

Definition at line 24 of file include/wvbuffer.h.

References buffer, head, size, and tail.

WvMiniBuffer::~WvMiniBuffer   [inline]
 

Definition at line 26 of file include/wvbuffer.h.

References buffer.

WvMiniBuffer::WvMiniBuffer size_t    _size [inline]
 

Definition at line 24 of file utils/wvbuffer.h.

References buffer, head, size, and tail.

WvMiniBuffer::~WvMiniBuffer   [inline]
 

Definition at line 26 of file utils/wvbuffer.h.

References buffer.


Member Function Documentation

unsigned char* WvMiniBuffer::alloc size_t    num [inline]
 

Definition at line 73 of file utils/wvbuffer.h.

References tail.

unsigned char* WvMiniBuffer::alloc size_t    num [inline]
 

Definition at line 73 of file include/wvbuffer.h.

References tail.

Referenced by WvBuffer::alloc(), WvGzip::do_encode(), and put().

size_t WvMiniBuffer::free   const [inline]
 

Definition at line 39 of file utils/wvbuffer.h.

References buffer, size, and tail.

size_t WvMiniBuffer::free   const [inline]
 

Definition at line 39 of file include/wvbuffer.h.

References buffer, size, and tail.

Referenced by WvBuffer::alloc(), WvGzip::do_encode(), WvBuffer::get(), WvBuffer::put(), and WvBuffer::unget().

unsigned char* WvMiniBuffer::get size_t    num [inline]
 

Definition at line 59 of file utils/wvbuffer.h.

References head.

unsigned char* WvMiniBuffer::get size_t    num [inline]
 

Definition at line 59 of file include/wvbuffer.h.

References head.

Referenced by WvGzip::do_encode(), and WvBuffer::get().

size_t WvMiniBuffer::match const char    chlist[],
bool    reverse = false
const [inline]
 

Definition at line 104 of file utils/wvbuffer.h.

References match().

size_t WvMiniBuffer::match const unsigned char    chlist[],
size_t    numch,
bool    reverse = false
const
 

size_t WvMiniBuffer::match const char    chlist[],
bool    reverse = false
const [inline]
 

Definition at line 104 of file include/wvbuffer.h.

References match().

size_t WvMiniBuffer::match const unsigned char    chlist[],
size_t    numch,
bool    reverse = false
const
 

Definition at line 37 of file wvbuffer.cc.

References head, and tail.

Referenced by match(), and WvBuffer::match().

void WvMiniBuffer::put const void *    data,
size_t    num
[inline]
 

Definition at line 86 of file utils/wvbuffer.h.

References alloc().

void WvMiniBuffer::put const void *    data,
size_t    num
[inline]
 

Definition at line 86 of file include/wvbuffer.h.

References alloc().

Referenced by WvBuffer::get(), and WvBuffer::put().

size_t WvMiniBuffer::strchr char    ch const [inline]
 

Definition at line 95 of file utils/wvbuffer.h.

References strchr().

size_t WvMiniBuffer::strchr unsigned char    ch const
 

size_t WvMiniBuffer::strchr char    ch const [inline]
 

Definition at line 95 of file include/wvbuffer.h.

References strchr().

size_t WvMiniBuffer::strchr unsigned char    ch const
 

Definition at line 26 of file wvbuffer.cc.

References head, and tail.

Referenced by strchr(), and WvBuffer::strchr().

size_t WvMiniBuffer::total   const [inline]
 

Definition at line 35 of file utils/wvbuffer.h.

References size.

size_t WvMiniBuffer::total   const [inline]
 

Definition at line 35 of file include/wvbuffer.h.

References size.

Referenced by WvBuffer::alloc(), WvBuffer::get(), WvBuffer::put(), WvBuffer::unalloc(), and WvBuffer::unget().

void WvMiniBuffer::unalloc size_t    num [inline]
 

Definition at line 80 of file utils/wvbuffer.h.

References tail.

void WvMiniBuffer::unalloc size_t    num [inline]
 

Definition at line 80 of file include/wvbuffer.h.

References tail.

Referenced by WvGzip::do_encode(), and WvBuffer::unalloc().

void WvMiniBuffer::unget size_t    num [inline]
 

Definition at line 66 of file utils/wvbuffer.h.

References head.

void WvMiniBuffer::unget size_t    num [inline]
 

Definition at line 66 of file include/wvbuffer.h.

References head.

Referenced by WvBuffer::unget().

size_t WvMiniBuffer::used   const [inline]
 

Definition at line 37 of file utils/wvbuffer.h.

References head, and tail.

size_t WvMiniBuffer::used   const [inline]
 

Definition at line 37 of file include/wvbuffer.h.

References head, and tail.

Referenced by WvBuffer::alloc(), WvGzip::do_encode(), WvBuffer::get(), WvBuffer::match(), WvBuffer::put(), WvBuffer::strchr(), WvBuffer::unalloc(), and WvBuffer::unget().

void WvMiniBuffer::zap   [inline]
 

Definition at line 46 of file utils/wvbuffer.h.

References buffer, head, and tail.

void WvMiniBuffer::zap   [inline]
 

Definition at line 46 of file include/wvbuffer.h.

References buffer, head, and tail.

Referenced by WvGzip::do_encode().


Member Data Documentation

unsigned char* WvMiniBuffer::buffer [private]
 

Definition at line 20 of file utils/wvbuffer.h.

unsigned char* WvMiniBuffer::buffer [private]
 

Definition at line 20 of file include/wvbuffer.h.

Referenced by free(), WvMiniBuffer(), zap(), and ~WvMiniBuffer().

unsigned char * WvMiniBuffer::head [private]
 

Definition at line 20 of file utils/wvbuffer.h.

Referenced by get(), match(), strchr(), unget(), used(), WvMiniBuffer(), and zap().

size_t WvMiniBuffer::size [private]
 

Definition at line 21 of file utils/wvbuffer.h.

Referenced by free(), total(), and WvMiniBuffer().

unsigned char * WvMiniBuffer::tail [private]
 

Definition at line 20 of file utils/wvbuffer.h.

Referenced by alloc(), free(), match(), strchr(), unalloc(), used(), WvMiniBuffer(), and zap().


The documentation for this class was generated from the following files:
Generated on Sat Aug 24 23:08:03 2002 for WvStreams by doxygen1.2.15