Adapter.copyBytes

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.

class Adapter
copyBytes
(
size_t offset
,
size_t size
)

Parameters

offset size_t

the bytes offset in the adapter to start from

size size_t

the number of bytes to copy

Return Value

Type: Bytes

A new #GBytes structure containing the copied data.

Meta