RTCPBuffer.newTakeData

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.

class RTCPBuffer
static
newTakeData
(
ubyte[] data
)

Parameters

data ubyte[]

data for the new buffer

Return Value

Type: gst.buffer.Buffer

A newly allocated buffer with data and of size len.