from

fun from(data: ByteArray): PduType?

Returns the PDU type from the given pdu.

Return

PduType or throws an exception if the value is invalid.

Parameters

data

PDU data.

Throws

if the value is invalid.