allocate_output_buffer


Description:

[ Version ( since = "1.16" ) ]
public Buffer allocate_output_buffer (uint payload_len, uint8 pad_len, uint8 csrc_count)

Allocate a new Buffer with enough data to hold an RTP packet with minimum csrc_count CSRCs, a payload length of payload_len and padding of pad_len.

If this has source_info true additional CSRCs may be allocated and filled with RTP source information.

Parameters:

this

a BasePayload

payload_len

the length of the payload

pad_len

the amount of padding

csrc_count

the minimum number of CSRC entries

Returns:

A newly allocated buffer that can hold an RTP packet with given parameters.




2022 vala-language.org