Memory.newWrapped

Allocate a new memory block that wraps the given data.

The prefix/padding must be filled with 0 if flags contains #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively.

class Memory
static
newWrapped

Parameters

flags gst.types.MemoryFlags

#GstMemoryFlags

data ubyte[]

data to wrap

maxsize size_t

allocated size of data

offset size_t

offset in data

notify glib.types.DestroyNotify

called with user_data when the memory is freed

Return Value

Type: gst.memory.Memory

a new #GstMemory.