38 for (
int i = 0; i <
len; i++)
54 for (
long i = 0; i <
len; i++) {
67 for (
long i = 0; i <
len; i++) {
82 for (
long i =
len; i > 0; i--) {
113 for (
int i = 0; i <
len; i++)
145 for (
int i = 0; i <
len; i++)
147 for (
int i = 0; i <
a.len; i++)
148 nb[
len + i] =
a.buff[i];
An array of BufferStores.
void clear(void)
Empties the BufferArray.
BufferArray & operator=(const BufferArray &a)
Copys the BufferArray.
long length(void)
Evaluates the current length.
static const long ALLOC_MIN
Minimum number of BufferStores to allocate.
long lenAllocd
The current number of BufferStores allocated.
BufferArray operator+(const BufferStore &s)
Appends a BufferStore to a BufferArray.
BufferArray & operator+=(const BufferStore &s)
Appends a BufferStore to current instance.
~BufferArray()
Destroys the BufferArray.
BufferStore & operator[](const unsigned long index)
Retrieves the BufferStore at given index.
BufferStore * buff
The content.
void append(const BufferStore &b)
Appends a BufferStore.
BufferArray()
constructs a new BufferArray.
void push(const BufferStore &b)
Inserts a BufferStore at index 0.
long len
The current number of BufferStores in this BufferArray.
BufferStore pop(void)
Removes the first BufferStore.
A generic container for an array of bytes.