get_as_bytes


Description:

[ Version ( since = "2.40" ) ]
public Bytes get_as_bytes ()

Creates a Bytes pointing to the same memory as this.

The Bytes will hold a reference on this to ensure that it is not freed while the Bytes is still valid.

Parameters:

this

a Buffer

Returns:

a new Bytes which has the same content as the Buffer.




2022 vala-language.org