decode

inline fun <T> Asn1Primitive.decode(tag: UByte, transform: (content: ByteArray) -> T): T(source)

Generic decoding function. Verifies that this Asn1Primitive's tag matches tag and transforms its content as per transform

Throws

all sorts of exceptions on invalid input