Companion

Functions

Link copied to clipboard

Decodes the first PEM document found in bytes. The bytes are treated as an encoded string

Decodes the first PEM document found in text

fun decode(source: Source): PemDocument

Decodes the first PEM document found in source. The source is treated as an encoded string and is consumed up to and including the decoded document

Link copied to clipboard

Lazily decodes all PEM documents found in bytes. The bytes are treated as an encoded string

Lazily decodes all PEM documents found in text

Lazily decodes all PEM documents found in source. The source is treated as an encoded string and is consumed up to and including the last decoded document, which was consumed from the sequence