Buffer.this

Creates a newly allocated buffer with data of the given size. The buffer memory is not cleared. If the requested amount of memory can't be allocated, the program will abort. Use gst_buffer_try_new_and_alloc() if you want to handle this case gracefully or have gotten the size to allocate from an untrusted source such as a media stream. Note that when size == 0, the buffer data pointer will be NULL. MT safe.

  1. this(GstBuffer* gstBuffer)
  2. this()
  3. this(uint size)
    class Buffer
    this
    (
    uint size
    )

Parameters

size uint

the size of the new buffer's data.

Throws

ConstructionException GTK+ fails to create the object.

Meta