Buffer.newWrappedBytes

gst.buffer.Buffer newWrappedBytes(glib.bytes.Bytes bytes)

Creates a new #GstBuffer that wraps the given bytes. The data inside bytes cannot be null and the resulting buffer will be marked as read only.

Parameters

bytesa #GBytes to wrap

Returns

a new #GstBuffer wrapping bytes