parseFirst
fun Asn1Element.Companion.parseFirst(source: Source<*>, limit: Long?): Pair<Asn1Element, Long>(source)
Parses the first ASN.1 element from source.
Parameters
limit
the maximum allowed total number of encoded DER bytes to consume. This limit is enforced before reading or peeking from the underlying source.