catchAll

fun <S : T> catchAll(runtimeClass: KClass<S>, serializer: KSerializer<S>, leadingTags: Set<Asn1Element.Tag>)(source)

Registers one catch-all subtype for OID-discriminated open polymorphism.

This subtype is used when the discriminator OID is present but no exact OID mapping exists.

Throws

if leading tags cannot be inferred for empty leadingTags


inline fun <S : T> catchAll(vararg leadingTags: Asn1Element.Tag)(source)