freed with [glib.global.gfree]
Bytes.unrefToData
ubyte[] unrefToData()Unreferences the bytes, and returns a pointer the same byte data contents.
As an optimization, the byte data is returned without copying if this was the last reference to bytes and bytes was created with [glib.bytes.Bytes.new_], [glib.bytes.Bytes.newTake] or [glib.byte_array.ByteArray.freeToBytes]. In all other cases the data is copied.
Returns
a pointer to the same byte data, which should be