Buffer.memdup
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.20" ) ]
public Buffer.memdup (uint8[] data)
[ 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 |
Returns:
a new Buffer |