buildCidRecordHeader

fnubyte[] buildCidRecordHeader(ubyte contentType, ushort epoch, ulong seqNum, DtlsConnectionId cid, ushort payloadLen)

Builds a DTLS 1.3 record header with optional CID.

Parameters

contentTypeRecord content type.
epochRecord epoch.
seqNum48-bit sequence number.
cidConnection ID to include (none = no CID field).
payloadLenPayload length.

Returns

Serialized record header bytes.