Buffer


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "0.3.0" ) ]
public Buffer (uint8[] data)

Parameters:

data

Data for the buffer. They aren't owned by the new buffer. You must not free the data while the new buffer is alive.

size

The number of bytes of the data.

Returns:

A newly created Buffer.