C# Class MiniUDP.NetTraffic.SequenceCounter

Sliding bit array keeping a history of received sequence numbers.
Afficher le fichier Open project: ashoulson/MiniUDP Class Usage Examples

Méthodes publiques

Méthode Description
Advance ( ushort sequence ) : void

Advances to a given sequence without storing anything.

ComputeCount ( ) : int
SequenceCounter ( bool startFilled = true ) : System
Store ( ushort sequence ) : void

Logs the sequence in the accumulator.

Private Methods

Méthode Description
HammingWeight ( uint chunk ) : uint
SetBit ( int index ) : bool

Returns true iff the value is already contained.

Shift ( int count ) : void

Shifts the entire array by a given number of bits.

Method Details

Advance() public méthode

Advances to a given sequence without storing anything.
public Advance ( ushort sequence ) : void
sequence ushort
Résultat void

ComputeCount() public méthode

public ComputeCount ( ) : int
Résultat int

SequenceCounter() public méthode

public SequenceCounter ( bool startFilled = true ) : System
startFilled bool
Résultat System

Store() public méthode

Logs the sequence in the accumulator.
public Store ( ushort sequence ) : void
sequence ushort
Résultat void