new_allocate_len


Description:

public static Buffer new_allocate_len (uint packet_len, uint8 pad_len, uint8 csrc_count)

Create a new Buffer 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 calc_payload_len. All RTP header fields will be set to 0/FALSE.

Parameters:

packet_len

the total length of the packet

pad_len

the amount of padding

csrc_count

the number of CSRC entries

Returns:

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