parse

Parses the provided source into a single Asn1Element. Consumes all bytes and throws if more than one ASN.1 structure was found or trailing bytes were detected.

Return

the parsed Asn1Element

Throws

on invalid input or if more than a single root structure was contained in the source