BufferListIterator
Object Hierarchy:
Description:
[ Compact ]
public class BufferListIterator
Content:
Methods:
- public void add (owned Buffer buffer)
Inserts buffer into the
BufferList iterated with it.
- public void add_group ()
Inserts a new, empty group into the
BufferList iterated with it.
- public void add_list (List list)
Inserts list of buffers into the
BufferList iterated with it.
- public weak Buffer? @do (BufferListDoFunction do_func)
Calls the given function for the last buffer returned by
next.
- public Buffer? merge_group ()
Merge a buffer list group into a normal
Buffer by copying its metadata and memcpying its data into consecutive memory.
- public uint n_buffers ()
Returns the number of buffers left to iterate in the current group.
- public weak Buffer? next ()
Returns the next buffer in the list iterated with it.
- public bool next_group ()
Advance the iterator it to the first buffer in the next group.
- public void remove ()
Removes the last buffer returned by
next from the
BufferList iterated with it.
- public weak Buffer? steal ()
Returns the last buffer returned by
next without modifying the refcount of the buffer.
- public void take (owned Buffer buffer)
Replaces the last buffer returned by
next with buffer in the
BufferList iterated with it and takes ownership of buffer
.