The WvInPlaceBuf storage class.
More...
#include <wvbufstore.h>
|
| WvInPlaceBufStore (int _granularity, void *_data, size_t _avail, size_t _size, bool _autofree) |
|
| WvInPlaceBufStore (int _granularity, size_t _size) |
|
void * | ptr () const |
|
size_t | size () const |
|
bool | get_autofree () const |
|
void | set_autofree (bool _autofree) |
|
void | reset (void *_data, size_t _avail, size_t _size, bool _autofree) |
|
void | setavail (size_t _avail) |
|
virtual size_t | used () const |
|
virtual const void * | get (size_t count) |
|
virtual void | unget (size_t count) |
|
virtual size_t | ungettable () const |
|
virtual void | zap () |
|
virtual size_t | free () const |
|
virtual void * | alloc (size_t count) |
|
virtual void | unalloc (size_t count) |
|
virtual size_t | unallocable () const |
|
virtual void * | mutablepeek (int offset, size_t count) |
|
virtual bool | isreadable () const |
|
virtual size_t | optgettable () const |
|
virtual void | skip (size_t count) |
|
virtual size_t | peekable (int offset) const |
|
virtual size_t | optpeekable (int offset) const |
|
virtual const void * | peek (int offset, size_t count) |
|
void | move (void *buf, size_t count) |
|
void | copy (void *buf, int offset, size_t count) |
|
virtual bool | iswritable () const |
|
virtual size_t | optallocable () const |
|
void | put (const void *data, size_t count) |
|
void | fastput (const void *data, size_t count) |
|
void | poke (const void *data, int offset, size_t count) |
|
virtual void | merge (WvBufStore &instore, size_t count) |
|
void | basicmerge (WvBufStore &instore, size_t count) |
|
The WvInPlaceBuf storage class.
Definition at line 251 of file wvbufstore.h.
◆ WvInPlaceBufStore() [1/2]
WvInPlaceBufStore::WvInPlaceBufStore |
( |
int |
_granularity, |
|
|
void * |
_data, |
|
|
size_t |
_avail, |
|
|
size_t |
_size, |
|
|
bool |
_autofree |
|
) |
| |
◆ WvInPlaceBufStore() [2/2]
WvInPlaceBufStore::WvInPlaceBufStore |
( |
int |
_granularity, |
|
|
size_t |
_size |
|
) |
| |
◆ ~WvInPlaceBufStore()
WvInPlaceBufStore::~WvInPlaceBufStore |
( |
| ) |
|
|
virtual |
◆ ptr()
void * WvInPlaceBufStore::ptr |
( |
| ) |
const |
|
inline |
◆ size()
size_t WvInPlaceBufStore::size |
( |
| ) |
const |
|
inline |
◆ get_autofree()
bool WvInPlaceBufStore::get_autofree |
( |
| ) |
const |
|
inline |
◆ set_autofree()
void WvInPlaceBufStore::set_autofree |
( |
bool |
_autofree | ) |
|
|
inline |
◆ reset()
void WvInPlaceBufStore::reset |
( |
void * |
_data, |
|
|
size_t |
_avail, |
|
|
size_t |
_size, |
|
|
bool |
_autofree = false |
|
) |
| |
◆ setavail()
void WvInPlaceBufStore::setavail |
( |
size_t |
_avail | ) |
|
◆ used()
size_t WvInPlaceBufStore::used |
( |
| ) |
const |
|
virtual |
◆ get()
const void * WvInPlaceBufStore::get |
( |
size_t |
count | ) |
|
|
virtual |
◆ unget()
void WvInPlaceBufStore::unget |
( |
size_t |
count | ) |
|
|
virtual |
◆ ungettable()
size_t WvInPlaceBufStore::ungettable |
( |
| ) |
const |
|
virtual |
◆ zap()
void WvInPlaceBufStore::zap |
( |
| ) |
|
|
virtual |
◆ free()
size_t WvInPlaceBufStore::free |
( |
| ) |
const |
|
virtual |
◆ alloc()
void * WvInPlaceBufStore::alloc |
( |
size_t |
count | ) |
|
|
virtual |
◆ unalloc()
void WvInPlaceBufStore::unalloc |
( |
size_t |
count | ) |
|
|
virtual |
◆ unallocable()
size_t WvInPlaceBufStore::unallocable |
( |
| ) |
const |
|
virtual |
◆ mutablepeek()
void * WvInPlaceBufStore::mutablepeek |
( |
int |
offset, |
|
|
size_t |
count |
|
) |
| |
|
virtual |
◆ isreadable()
virtual bool WvBufStore::isreadable |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ optgettable()
virtual size_t WvBufStore::optgettable |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ skip()
virtual void WvBufStore::skip |
( |
size_t |
count | ) |
|
|
inlinevirtualinherited |
◆ peekable()
size_t WvBufStore::peekable |
( |
int |
offset | ) |
const |
|
virtualinherited |
◆ optpeekable()
virtual size_t WvBufStore::optpeekable |
( |
int |
offset | ) |
const |
|
inlinevirtualinherited |
◆ peek()
virtual const void * WvBufStore::peek |
( |
int |
offset, |
|
|
size_t |
count |
|
) |
| |
|
inlinevirtualinherited |
◆ move()
void WvBufStore::move |
( |
void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
inherited |
◆ copy()
void WvBufStore::copy |
( |
void * |
buf, |
|
|
int |
offset, |
|
|
size_t |
count |
|
) |
| |
|
inherited |
◆ iswritable()
virtual bool WvBufStore::iswritable |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ optallocable()
virtual size_t WvBufStore::optallocable |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ put()
void WvBufStore::put |
( |
const void * |
data, |
|
|
size_t |
count |
|
) |
| |
|
inherited |
◆ fastput()
void WvBufStore::fastput |
( |
const void * |
data, |
|
|
size_t |
count |
|
) |
| |
|
inherited |
◆ poke()
void WvBufStore::poke |
( |
const void * |
data, |
|
|
int |
offset, |
|
|
size_t |
count |
|
) |
| |
|
inherited |
◆ merge()
void WvBufStore::merge |
( |
WvBufStore & |
instore, |
|
|
size_t |
count |
|
) |
| |
|
virtualinherited |
◆ basicmerge()
void WvBufStore::basicmerge |
( |
WvBufStore & |
instore, |
|
|
size_t |
count |
|
) |
| |
|
inherited |
◆ usessubbuffers()
virtual bool WvBufStore::usessubbuffers |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ numsubbuffers()
virtual size_t WvBufStore::numsubbuffers |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ firstsubbuffer()
virtual WvBufStore * WvBufStore::firstsubbuffer |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ appendsubbuffer()
virtual void WvBufStore::appendsubbuffer |
( |
WvBufStore * |
buffer, |
|
|
bool |
autofree |
|
) |
| |
|
inlineprotectedvirtualinherited |
◆ prependsubbuffer()
virtual void WvBufStore::prependsubbuffer |
( |
WvBufStore * |
buffer, |
|
|
bool |
autofree |
|
) |
| |
|
inlineprotectedvirtualinherited |
◆ unlinksubbuffer()
virtual bool WvBufStore::unlinksubbuffer |
( |
WvBufStore * |
buffer, |
|
|
bool |
allowautofree |
|
) |
| |
|
inlineprotectedvirtualinherited |
Unlinks the specified subbuffer.
Only autofrees the buffer if allowautofree == true. Returns: the autofree flag for the buffer
Reimplemented in WvLinkedBufferStore.
Definition at line 123 of file wvbufstore.h.
◆ data
void* WvInPlaceBufStore::data |
|
protected |
◆ xsize
size_t WvInPlaceBufStore::xsize |
|
protected |
◆ readidx
size_t WvInPlaceBufStore::readidx |
|
protected |
◆ writeidx
size_t WvInPlaceBufStore::writeidx |
|
protected |
◆ xautofree
bool WvInPlaceBufStore::xautofree |
|
protected |
◆ granularity
int WvBufStore::granularity |
|
protectedinherited |
The documentation for this class was generated from the following files: