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
soup_memory_take as first argument; it exists mainly for convenience and simplifying language bindings.
Parameters:
| data |
data
|
| length |
length of data
|
Returns: