RTPBuffer.allocateData

void allocateData(gst.buffer.Buffer buffer, uint payloadLen, ubyte padLen, ubyte csrcCount)

Allocate enough data in buffer to hold an RTP packet with csrc_count CSRCs, a payload length of payload_len and padding of pad_len. buffer must be writable and all previous memory in buffer will be freed. If pad_len is >0, the padding bit will be set. All other RTP header fields will be set to 0/FALSE.

Parameters

buffera #GstBuffer
payloadLenthe length of the payload
padLenthe amount of padding
csrcCountthe number of CSRC entries