RTPBuffer.calcPacketLen

Calculate the total length of an RTP packet with a payload size of payload_len, a padding of pad_len and a csrc_count CSRC entries.

class RTPBuffer
static
uint
calcPacketLen
(,
ubyte padLen
,
ubyte csrcCount
)

Parameters

payloadLen uint

the length of the payload

padLen ubyte

the amount of padding

csrcCount ubyte

the number of CSRC entries

Return Value

Type: uint

The total length of an RTP header with given parameters.