parseAll

Convenience wrapper around parseAll, taking a ByteArray as source

See also


Deprecated

Use a ByteArray or (even better) a kotlinx.io Source as input when possible. This method copies all bytes from the input twice and is inefficient.

Replace with

source.readFullyToAsn1Elements()

Tries to parse the input into a list of Asn1Elements. Consumes all Bytes and throws if an invalid ASN.1 Structure is found at any point.

Return

the parsed elements

Throws

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