Memory.newWrapped
gst.memory.Memory newWrapped(gst.types.MemoryFlags flags, ubyte[] data, size_t maxsize, size_t offset, glib.types.DestroyNotify notify = null)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.
Parameters
flags | #GstMemoryFlags |
data | data to wrap |
maxsize | allocated size of data |
offset | offset in data |
notify | called with user_data when the memory is freed |
Returns
a new #GstMemory.