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 glib.Bytes structure which is returned. Depending on the value of the size argument an empty glib.Bytes 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 glib.Bytes structure containing the copied data.

Meta