#include <wvbufstore.h>
Inheritance diagram for WvInPlaceBufStore:
Public Member Functions | |
| 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) |
Protected Member Functions | |
| virtual bool | usessubbuffers () const |
| Returns true if the buffer uses subbuffers for storage. | |
| virtual size_t | numsubbuffers () const |
| Returns the number of subbuffers in the buffer. | |
| virtual WvBufStore * | firstsubbuffer () const |
| Returns the first subbuffer. | |
| virtual void | appendsubbuffer (WvBufStore *buffer, bool autofree) |
| Appends a subbuffer to the buffer. | |
| virtual void | prependsubbuffer (WvBufStore *buffer, bool autofree) |
| Prepends a subbuffer to the buffer. | |
| virtual bool | unlinksubbuffer (WvBufStore *buffer, bool allowautofree) |
| Unlinks the specified subbuffer. | |
Protected Attributes | |
| void * | data |
| size_t | xsize |
| size_t | readidx |
| size_t | writeidx |
| bool | xautofree |
| int | granularity |
|
|
Returns the first subbuffer. Returns: the buffer or NULL if none or not supported Reimplemented in WvLinkedBufferStore. |
|
||||||||||||
|
Unlinks the specified subbuffer. Only autofrees the buffer if allowautofree == true. Returns: the autofree flag for the buffer Reimplemented in WvLinkedBufferStore. |
1.4.2