Buffer.this

Allocate a new buffer that wraps the given memory. data must point to maxsize of memory, the wrapped buffer will have the region from offset and size visible. When the buffer is destroyed, notify will be called with user_data. The prefix/padding must be filled with 0 if flags contains GST_MEMORY_FLAG_ZERO_PREFIXED and GST_MEMORY_FLAG_ZERO_PADDED respectively.

  1. this(GstBuffer* gstBuffer)
  2. this()
  3. this(Allocator allocator, gsize size, GstAllocationParams* params)
  4. this(void[] data)
  5. this(GstMemoryFlags flags, void* data, gsize maxsize, gsize offset, gsize size, void* userData, GDestroyNotify notify)

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]

Throws

ConstructionException GTK+ fails to create the object.

Meta