from

fun from(value: UByte): PduTypes

Returns the PDU type from the given value.

Return

PduType or throws PduTypeNotSupported if the value is invalid.

Parameters

value

The value of the PDU type.

Throws

if the value is invalid.