Memory.copy

Return a copy of @size bytes from @mem starting from @offset. This copy is guaranteed to be writable. @size can be set to -1 to return a copy all bytes from @offset.

class Memory
copy
(
ptrdiff_t offset
,
ptrdiff_t size
)

Parameters

offset ptrdiff_t

an offset to copy

size ptrdiff_t

size to copy or -1 to copy all bytes from offset

Return: a new #GstMemory.

Meta