Buffer.take


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.32" ) ]
public Buffer.take (owned uint8[] data)

Creates a new Buffer containing data.length bytes from data .

This function is exactly equivalent to Buffer with TAKE as first argument; it exists mainly for convenience and simplifying language bindings.

Parameters:

data

data

length

length of data

Returns:

the new Buffer.