get_buffer_fast


Description:

[ Version ( since = "1.6" ) ]
public Buffer? get_buffer_fast (size_t nbytes)

Returns a Buffer containing the first nbytes of the this, but does not flush them from the adapter.

See take_buffer_fast for details.

Caller owns a reference to the returned buffer. gst_buffer_unref after usage.

Free-function: gst_buffer_unref

Parameters:

this

a Adapter

nbytes

the number of bytes to get

Returns:

a Buffer containing the first nbytes of the adapter, or null if nbytes bytes are not available. gst_buffer_unref when no longer needed.