encodeToTlv
@ExperimentalSerializationApi
Encodes value with the given serializer into a single ASN.1 TLV element.
**This function returns a nullable Asn1Element because encoding null may not yield any element depending on configuration
Throws
SerializationException
if descriptor/tag/nullability constraints are violated
if serialization produced more than one top-level element
@ExperimentalSerializationApi
Encodes value with the given serializer into a single ASN.1 TLV element.
Throws
SerializationException
if descriptor/tag/nullability constraints are violated
if serialization produced more than one top-level element