parseCidRecordHeader
fn
CidRecordHeader parseCidRecordHeader(const(ubyte)[] data, ubyte expectedCidLen)Parses a DTLS 1.3 record header with optional CID.
The CID-aware header format (RFC 9147 §4.2.2): [ContentType 1] [Epoch 2] [SeqNum 6] [CID 0-255] [Length 2]
There is no CID-length byte on the wire: the receiver knows its own negotiated CID length and slices that many bytes.
Parameters
data | Raw record header bytes. |
expectedCidLen | Expected CID length for this connection (0 = no CID). |
Returns
Parsed header fields.