Adapter.copy
glib.bytes.Bytes copy(size_t offset, size_t size)Similar to gst_adapter_copy, but more suitable for language bindings. size bytes of data starting at offset will be copied out of the buffers contained in adapter and into a new #GBytes structure which is returned. Depending on the value of the size argument an empty #GBytes structure may be returned.
Parameters
offset | the bytes offset in the adapter to start from |
size | the number of bytes to copy |
Returns
A new #GBytes structure containing the copied data.