Bytes.unrefToArray

Unreferences the bytes, and returns a new mutable #GByteArray containing the same byte data.

As an optimization, the byte data is transferred to the array without copying if this was the last reference to bytes and bytes was created with g_bytes_new(), g_bytes_new_take() or g_byte_array_free_to_bytes(). In all other cases the data is copied.

Return: a new mutable #GByteArray containing the same byte data

class Bytes
unrefToArray
()

Meta

Since

2.32