WvStreams
|
A buffer that dynamically grows and shrinks based on demand. More...
#include <wvbufbase.h>
Public Member Functions | |
WvDynBufBase (size_t _minalloc=1024, size_t _maxalloc=1048576) | |
Creates a new buffer. More... | |
Protected Types | |
typedef T | Elem |
Protected Attributes | |
WvDynBufStore | mystore |
A buffer that dynamically grows and shrinks based on demand.
"T" is the type of object to store, must be a primitive or a struct without special initialization, copy, or assignment semantics
Definition at line 953 of file wvbufbase.h.
|
inlineexplicit |
Creates a new buffer.
Provides some parameters for tuning response to buffer growth.
"_minalloc" is the minimum number of elements to allocate at once when creating a new internal buffer segment "_maxalloc" is the maximum number of elements to allocate at once when creating a new internal buffer segment before before reverting to a linear growth pattern
Definition at line 973 of file wvbufbase.h.