21#ifndef _BUFFERARRAY_H_
22#define _BUFFERARRAY_H_
An array of bufferStores.
void push(const bufferStore &b)
Inserts a bufferStore at index 0.
bufferStore pop(void)
Removes the first bufferStore.
~bufferArray()
Destroys the bufferArray.
long lenAllocd
The current number of bufferStores allocated.
long length(void)
Evaluates the current length.
bufferArray operator+(const bufferStore &s)
Appends a bufferStore to a bufferArray.
bufferStore & operator[](const unsigned long index)
Retrieves the bufferStore at given index.
void clear(void)
Empties the bufferArray.
bufferArray()
constructs a new bufferArray.
static const long ALLOC_MIN
Minimum number of bufferStores to allocate.
bufferArray & operator=(const bufferArray &a)
Copys the bufferArray.
void append(const bufferStore &b)
Appends a bufferStore.
bufferStore * buff
The content.
bool empty() const
Checks if this bufferArray is empty.
bufferArray & operator+=(const bufferStore &s)
Appends a bufferStore to current instance.
long len
The current number of bufferStores in this bufferArray.
A generic container for an array of bytes.