Buffered Array.
typedef struct BArray { uint sig; byte wobj[64]; } BArray;

Get element count.
API uint BArrayGetElemCount(BArray *array);
array: Buffered array.
returns: Element count.

Get element memory.
API void *BArrayGetElem(BArray *array, int index);
array: Buffered array.
index: Element index.
returns: Element or 0.

Add element.
API void *BArrayAddElem(BArray *array, int at, int *index);
array: Buffered array.
at: Insert at.
index: Var for element index or 0.
returns: Element or 0.

Delete element.
API void BArrayDelElem(BArray *array, int index);
array: Buffered array.
index: Element index.

Remove all elements.
API void BArrayClear(BArray *array);
array: Buffered array.

Initialize array.
API void BArrayInit(BArray *array, uint elemSize, uint incr, FDestructCB Destruct);
array: Buffered array.
elemSize: Element size.
incr: Increment.
Destruct: Element destructor callback or 0.

Release array.
API void BArrayRel(BArray *array);
array: Buffered array.