Buffer.memdup


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.20" ) ]
public Buffer.memdup (uint8[] data)

Creates a new buffer of size data.length and fills it with a copy of data.

Parameters:

data

data to copy into new buffer

size

size of data in bytes

Returns:

a new Buffer