Utils.seqnumCompare

Compare two sequence numbers, handling wraparound.

The current implementation just returns (gint32)(@s1 - @s2).

struct Utils
static
int
seqnumCompare
(
uint s1
,
uint s2
)

Parameters

s1 uint

A sequence number.

s2 uint

Another sequence number.

Return Value

Type: int

A negative number if @s1 is before @s2, 0 if they are equal, or a positive number if @s1 is after @s2.

Meta