kxs
Toggle table of contents
0.3.0
common
Target filter
common
Switch theme
Search in API
Skip to content
kxs
kxs
/
at.asitplus.awesn1.serialization
/
Asn1OpenPolymorphismByTagBuilder
/
subtype
subtype
fun
<
S
:
T
>
subtype
(
serializer
:
KSerializer
<
S
>
,
leadingTags
:
Set
<
Asn1Element.Tag
>
,
matches
:
(
T
)
->
Boolean
)
(
source
)
Registers one tag-discriminated subtype.
Throws
Illegal
Argument
Exception
if leading tags cannot be inferred for empty
leadingTags
inline
fun
<
S
:
T
>
subtype
(
vararg
leadingTags
:
Asn1Element.Tag
,
noinline
matches
:
(
T
)
->
Boolean
=
{ it is S }
)
(
source
)