#include <wvbuffer.h>
Public Member Functions | |
WvBuffer () | |
size_t | used () 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 *buf, size_t num) |
void | put (const WvString &str) |
void | merge (WvBuffer &buf) |
WvString | getstr () |
size_t | strchr (unsigned char ch) |
size_t | strchr (char ch) |
size_t | match (const unsigned char chlist[], size_t numch, bool reverse=false) |
size_t | match (const char chlist[], bool reverse=false) |
int | num_of_bufs () |
WvBuffer () | |
size_t | used () 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 *buf, size_t num) |
void | put (const WvString &str) |
void | merge (WvBuffer &buf) |
WvString | getstr () |
size_t | strchr (unsigned char ch) |
size_t | strchr (char ch) |
size_t | match (const unsigned char chlist[], size_t numch, bool reverse=false) |
size_t | match (const char chlist[], bool reverse=false) |
int | num_of_bufs () |
Private Attributes | |
WvMiniBufferList | list |
size_t | inuse |
|
Definition at line 119 of file include/wvbuffer.h. |
|
Definition at line 119 of file utils/wvbuffer.h. |
|
|
|
Definition at line 168 of file wvbuffer.cc. References WvMiniBuffer::alloc(), WvList< WvMiniBuffer >::append(), WvLink::data, Dprintf, WvMiniBuffer::free(), inuse, list, MINSIZE, WvListBase::tail, WvMiniBuffer::total(), and WvMiniBuffer::used(). Referenced by WvStream::getline(), and WvStream::read(). |
|
|
|
Definition at line 76 of file wvbuffer.cc. References Dprintf, WvMiniBuffer::free(), WvMiniBuffer::get(), inuse, list, WvList< WvMiniBuffer >::prepend(), WvMiniBuffer::put(), WvMiniBuffer::total(), and WvMiniBuffer::used(). Referenced by WvSyslog::_end_line(), WvLogBuffer::_end_line(), WvStream::flush(), WvStream::getline(), getstr(), WvProtoStream::next_token(), WvStream::read(), and WvProtoStream::token_remaining(). |
|
|
|
Definition at line 331 of file wvbuffer.cc. References WvString::edit(), get(), WvString::setsize(), and used(). |
|
Definition at line 194 of file utils/wvbuffer.h. References match(). |
|
|
|
Definition at line 194 of file include/wvbuffer.h. References match(). |
|
Definition at line 366 of file wvbuffer.cc. References WvMiniBuffer::match(), and WvMiniBuffer::used(). Referenced by match(), and WvProtoStream::next_token(). |
|
|
|
Definition at line 316 of file wvbuffer.cc. References WvList< WvMiniBuffer >::append(), inuse, list, used(), and zap(). |
|
Definition at line 198 of file utils/wvbuffer.h. References WvListBase::count(). |
|
Definition at line 198 of file include/wvbuffer.h. References WvListBase::count(). |
|
|
|
|
|
Definition at line 307 of file wvbuffer.cc. References put(). |
|
Definition at line 262 of file wvbuffer.cc. References WvList< WvMiniBuffer >::append(), WvLink::data, Dprintf, WvMiniBuffer::free(), inuse, list, WvMiniBuffer::put(), WvListBase::tail, WvMiniBuffer::total(), and WvMiniBuffer::used(). Referenced by WvSyslog::_begin_line(), WvSyslog::_end_line(), WvLogBuffer::_end_line(), WvSyslog::_mid_line(), WvLogBuffer::_mid_line(), WvGzip::do_encode(), put(), WvProtoStream::token_remaining(), WvProtoStream::tokline(), WvRSAStream::uread(), and WvStream::write(). |
|
Definition at line 185 of file utils/wvbuffer.h. References strchr(). |
|
|
|
Definition at line 185 of file include/wvbuffer.h. References strchr(). |
|
Definition at line 345 of file wvbuffer.cc. References WvMiniBuffer::strchr(), and WvMiniBuffer::used(). Referenced by WvStream::getline(), and strchr(). |
|
|
|
Definition at line 209 of file wvbuffer.cc. References WvLink::data, Dprintf, inuse, list, WvListBase::tail, WvMiniBuffer::total(), WvMiniBuffer::unalloc(), and WvMiniBuffer::used(). Referenced by WvStream::getline(), and WvStream::read(). |
|
|
|
Definition at line 149 of file wvbuffer.cc. References WvMiniBuffer::free(), inuse, WvMiniBuffer::total(), WvMiniBuffer::unget(), and WvMiniBuffer::used(). Referenced by WvStream::flush(). |
|
Definition at line 122 of file utils/wvbuffer.h. |
|
|
|
|
Definition at line 66 of file wvbuffer.cc. References inuse. Referenced by WvSyslog::_end_line(), merge(), and WvProtoStream::tokline(). |
|
Definition at line 116 of file utils/wvbuffer.h. Referenced by alloc(), get(), merge(), put(), unalloc(), unget(), and zap(). |
|
Definition at line 115 of file utils/wvbuffer.h. Referenced by alloc(), get(), merge(), put(), and unalloc(). |