Buffer.wrapped_bytes


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.16" ) ]
public Buffer.wrapped_bytes (Bytes bytes)

Creates a new Buffer that wraps the given bytes.

The data inside bytes cannot be null and the resulting buffer will be marked as read only.

Parameters:

bytes

a Bytes to wrap

Returns:

a new Buffer wrapping bytes