TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.88.0
Generated with TypeDoc via ts-for-gir v4.0.0-beta.41
Since 2.32
Transfers the data from the GLib.ByteArray into a new immutable GLib.Bytes.
The GLib.ByteArray is freed unless the reference count of array is greater than one, in which the GLib.ByteArray wrapper is preserved but the size of array will be set to zero.
array
This is identical to using GLib.Bytes.new_take and GLib.ByteArray.free together.
a byte array
The new immutable GLib.Bytes representing same byte data that was in the array
2.32
Transfers the data from the GLib.ByteArray into a new immutable GLib.Bytes.
The GLib.ByteArray is freed unless the reference count of
arrayis greater than one, in which the GLib.ByteArray wrapper is preserved but the size ofarraywill be set to zero.This is identical to using GLib.Bytes.new_take and GLib.ByteArray.free together.