unref_to_data
Description:
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 Bytes, Bytes.take or free_to_bytes. In all other cases the data is copied.
Parameters:
bytes |
a Bytes |
size |
location to place the length of the returned data |
Returns:
a pointer to the same byte data, which should be freed with g_free |