TlsRecord.parse

TlsRecord parse(const(ubyte)[] data, out size_t consumed) @safe pure nothrow

Reads a TLS record from raw bytes.

Parameters

dataRaw bytes containing at least one complete record.
consumedSet to the number of bytes consumed.

Returns

The parsed record, or TlsRecord.init if incomplete.