Buffer.wrapped


Description:

[ CCode ( has_construct_function = false ) ]
public Buffer.wrapped (owned uint8[] data)

Creates a new buffer that wraps the given data.

The memory will be freed with g_free and will be marked writable.

Parameters:

data

data to wrap

size

allocated size of data

Returns:

a new Buffer