fm.liveswitch.RtpSequenceNumberUnwrapper Class Reference

Unwraps RTP sequence numbers (16-bit) to handle wraparound from 65535 to 0. More...

Public Member Functions

long peekUnwrap (int sequenceNumber)
 Returns the unwrapped value without updating the internal state. More...
 
void reset ()
 Resets the unwrapper to its initial state. More...
 
 RtpSequenceNumberUnwrapper ()
 
long unwrap (int sequenceNumber)
 Unwraps the sequence number and updates the internal state. More...
 

Detailed Description

Unwraps RTP sequence numbers (16-bit) to handle wraparound from 65535 to 0.

The first unwrapped value equals the first value being unwrapped.

Constructor & Destructor Documentation

◆ RtpSequenceNumberUnwrapper()

fm.liveswitch.RtpSequenceNumberUnwrapper.RtpSequenceNumberUnwrapper ( )

Member Function Documentation

◆ peekUnwrap()

long fm.liveswitch.RtpSequenceNumberUnwrapper.peekUnwrap ( int  sequenceNumber)

Returns the unwrapped value without updating the internal state.

◆ reset()

void fm.liveswitch.RtpSequenceNumberUnwrapper.reset ( )

Resets the unwrapper to its initial state.

◆ unwrap()

long fm.liveswitch.RtpSequenceNumberUnwrapper.unwrap ( int  sequenceNumber)

Unwraps the sequence number and updates the internal state.