decodeFromSource
Decodes a DER value from source using the inferred deserializer for T.
limit is the maximum allowed total number of encoded DER bytes to consume; it defaults to and is clamped to the configured maxInputLength — a smaller limit tightens the bound, but it can never exceed the configured maximum (mirroring how a shorter ByteArray lowers the effective bound when decoding from bytes). The limit is enforced before reading or peeking from the underlying source.
Throws
if the input does not parse as DER or violates descriptor/tag/nullability constraints.
Decodes a DER value from source using deserializer.
limit is the maximum allowed total number of encoded DER bytes to consume; it defaults to and is clamped to the configured maxInputLength — a smaller limit tightens the bound, but it can never exceed the configured maximum (mirroring how a shorter ByteArray lowers the effective bound when decoding from bytes). The limit is enforced before reading or peeking from the underlying source.
Throws
if the input does not parse as DER or violates descriptor/tag/nullability constraints.