ByteArray.take
Description:
Creates a byte array containing the data.
After this call, data belongs to the ByteArray and may no longer be
modified by the caller. The memory of data has to be dynamically allocated and will eventually be freed with
g_free.
Do not use it if data.length is greater than g_maxuint.
ByteArray stores the length of its data in
uint, which may be shorter than size_t.
Parameters:
| data |
byte data for the array |
| len |
length of |
Returns:
|
a new ByteArray |