RTPBuffer.newAllocateLen

gst.buffer.Buffer newAllocateLen(uint packetLen, ubyte padLen, ubyte csrcCount)

Create a new #GstBuffer that can hold an RTP packet that is exactly packet_len long. The length of the payload depends on pad_len and csrc_count and can be calculated with [gstrtp.rtpbuffer.RTPBuffer.calcPayloadLen]. All RTP header fields will be set to 0/FALSE.

Parameters

packetLenthe total length of the packet
padLenthe amount of padding
csrcCountthe number of CSRC entries

Returns

A newly allocated buffer that can hold an RTP packet of packet_len.