readSeq48

fnulong readSeq48(const(ubyte)[] data) @safe pure nothrow @nogc

Reads a 48-bit sequence number from 6 bytes (big-endian).

DTLS uses 48-bit sequence numbers on the wire. We represent them as ulong with the top 16 bits unused.

Parameters

dataSource bytes (must have at least 6 bytes).

Returns

The 48-bit sequence number as a ulong.