steal
Description:
Frees the data in the array and resets the size to zero, while the underlying array is preserved for use elsewhere and returned to the caller.
Parameters:
| array |
a ByteArray. |
| len |
pointer to retrieve the number of elements of the original array |
Returns:
|
the element data, which should be freed using g_free. |