Adapter.getBufferFast

Returns a #GstBuffer containing the first @nbytes of the @adapter, but does not flush them from the adapter. See gst_adapter_take_buffer_fast() for details.

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

Free-function: gst_buffer_unref

class Adapter
getBufferFast
(
size_t nbytes
)

Parameters

nbytes size_t

the number of bytes to get

Return Value

Type: Buffer

a #GstBuffer containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available. gst_buffer_unref() when no longer needed.

Meta