ByteArray.take


Description:

public ByteArray.take (owned uint8[] data)

Create byte array containing the data.

The data will be owned by the array and will be freed with g_free, i.e. it could be allocated using BusName.

Parameters:

data

byte data for the array

len

length of data

Returns:

a new ByteArray