peek


Description:

public Buffer? peek (CollectData data)

Peek at the buffer currently queued in data.

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

MT safe.

Parameters:

this

the collectpads to peek

data

the data to use

Returns:

The buffer in data or null if no buffer is queued. should unref the buffer after usage.