Valadoc | Vala | Tutorial | API-References | Markup

rtcp_buffer_new_take_data


Description:

public weak Buffer rtcp_buffer_new_take_data (void* data, uint len)

Create a new buffer and set the data and size of the buffer to data and len respectively. data will be freed when the buffer is unreffed, so this function transfers ownership of data to the new buffer.

Parameters:

len the length of data
data data for the new buffer

Returns:

A newly allocated buffer with data and of size len.

Namespace: Gst
Package: gstreamer-rtp-0.10