[ Version ( since = "2.64" ) ]
[ CCode ( array_length_type = "gsize" ) ]
public uint8[] steal ()
Frees the data in the array and resets the size to zero, while the underlying array is preserved for use elsewhere and returned to the caller.
array |
a ByteArray. |
len |
pointer to retrieve the number of elements of the original array |
the element data, which should be freed using g_free. |