flush


Description:

public uint flush (CollectData data, uint size)

Flush size bytes from the pad data.

This function should be called with this STREAM_LOCK held, such as in the callback.

MT safe.

Parameters:

this

the collectpads to query

data

the data to use

size

the number of bytes to flush

Returns:

The number of bytes flushed This can be less than size and is 0 if the pad was end-of-stream.




2022 vala-language.org