submit_buffer_list


Description:

[ Version ( since = "1.14" ) ]
public void submit_buffer_list (owned BufferList buffer_list)

Subclasses can call this from their create virtual method implementation to submit a buffer list to be pushed out later.

This is useful in cases where the create function wants to produce multiple buffers to be pushed out in one go in form of a BufferList, which can reduce overhead drastically, especially for packetised inputs (for data streams where the packetisation/chunking is not important it is usually more efficient to return larger buffers instead).

Subclasses that use this function from their create function must return OK and no buffer from their create virtual method implementation. If a buffer is returned after a buffer list has also been submitted via this function the behaviour is undefined.

Subclasses must only call this function once per create function call and subclasses must only call this function when the source operates in push mode.

Parameters:

this

a Src

buffer_list

a BufferList