Allocator.gstMemoryNewWrapped

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 Allocator
static
gstMemoryNewWrapped

Parameters

flags GstMemoryFlags

GstMemoryFlags

data void*

data to wrap. [array length=size][element-type guint8][transfer none]

maxsize gsize

allocated size of data

offset gsize

offset in data

size gsize

size of valid data

userData void*

user_data. [allow-none]

notify GDestroyNotify

called with user_data when the memory is freed. [allow-none][scope async][closure user_data]

Return Value

Type: Memory

a new GstMemory. [transfer full]

Meta