decode
inline fun <T> Asn1Primitive.decode(assertTag: ULong, transform: (content: ByteArray) -> T): T(source)
inline fun <T> Asn1Primitive.decode(assertTag: Asn1Element.Tag, transform: (content: ByteArray) -> T): T(source)
Generic decoding function. Verifies that this Asn1Primitive's tag matches assertTag and transforms its content as per transform
Throws
all sorts of exceptions on invalid input