BufferList
Object Hierarchy:
Gst.BufferList
Gst.BufferList
Gst.BufferList
Gst.MiniObject
Gst.MiniObject
Gst.MiniObject->Gst.BufferList
Description:
[
CCode ( ref_function =
"gst_buffer_list_ref" , type_id =
"gst_buffer_list_get_type ()" , unref_function =
"gst_buffer_list_unref" ) ]
[
Compact ]
public class BufferList :
MiniObject
Buffer lists are an object containing a list of buffers.
Buffer lists are created with BufferList and filled with data using
insert .
Buffer lists can be pushed on a srcpad with push_list . This is interesting when
multiple buffers need to be pushed in one go because it can reduce the amount of overhead for pushing each buffer individually.
Content:
Static methods:
public static bool replace (ref BufferList ? old_list, BufferList ? new_list)
public static bool take (ref BufferList old_list, owned BufferList ? new_list)
Creation methods:
Methods:
public bool @foreach (BufferListFunc func)
Calls func
with data
for each buffer in
this .
public unowned Buffer ? @get (uint idx)
Gets the buffer at idx
.
public size_t calculate_size ()
Calculates the size of the data contained in
this by adding the size of all buffers.
public BufferList copy_deep ()
Creates a copy of the given buffer list.
public unowned Buffer ? get_writable (uint idx)
Gets the buffer at idx
, ensuring it is a writable buffer.
public void insert (int idx, owned Buffer buffer)
Inserts buffer
at idx
in
this .
public uint length ()
Returns the number of buffers in this
.
public void remove (uint idx, uint length)
Removes length
buffers starting from idx
in
this .
Inherited Members:
All known members inherited from class Gst.MiniObject