Copy size bytes from mem starting at offset and return them wrapped in a new GstMemory object. If size is set to -1, all bytes starting at offset are copied.

alias GstMemoryCopyFunction = GstMemory* function(GstMemory* mem, ptrdiff_t offset, ptrdiff_t size)

Return Value

a new gstreamer.Memory object wrapping a copy of the requested region in mem.