Bytes.unrefToArray

Unreferences the bytes, and returns a new mutable glib.ByteArray 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 Bytes.new, Bytes.newTake or ByteArray.freeToBytes. In all other cases the data is copied.

class Bytes
unrefToArray
()

Return Value

Type: ByteArray

a new mutable glib.ByteArray containing the same byte data

Meta

Since

2.32