get_buffer


Description:

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

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

See take_buffer 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.