l_byteaCopy

l_byteaCopy()
Input: bas (source lba)
copyflag (L_COPY, L_CLONE)
Return: clone or copy of bas, or null on error
Notes:
(1) If cloning, up the refcount and return a ptr to @bas.

l_byteaCopyData

l_uint8 * l_byteaCopyData ( L_BYTEA *ba, size_t *psize )

l_byteaCopyData()
Input: ba
&size (<returned> size of data in lba)
Return: copy of data in use in the data array, or null on error.
Notes:
(1) The returned data is owned by the caller. The input @ba
still owns the original data array.

l_byteaDestroy

void l_byteaDestroy ( L_BYTEA **pba )

l_byteaDestroy()
Input: &ba (<will be set to null before returning>)
Return: void
Notes:
(1) Decrements the ref count and, if 0, destroys the lba.
(2) Always nulls the input ptr.
(3) If the data has been previously removed, the lba will
have been nulled, so this will do nothing.