Buffer.getAsBytes

Creates a #GBytes pointing to the same memory as @buffer. The #GBytes will hold a reference on @buffer to ensure that it is not freed while the #GBytes is still valid.

class Buffer
Bytes
getAsBytes
()

Return Value

Type: Bytes

a new #GBytes which has the same content as the #SoupBuffer.

Meta

Since

2.40