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_Length 1] [CID 0-255] [Length 2]
Parameters
data | Raw record header bytes. |
expectedCidLen | Expected CID length for this connection (0 = no CID). |
Returns
Parsed header fields.