Asn1ElementFallbackBase64SerializerBase

abstract class Asn1ElementFallbackBase64SerializerBase<T : Any>(decodeElement: (Asn1Element) -> T, encodeElement: (T) -> Asn1Element) : KSerializer<T> (source)

Generic serializer for ASN.1 tree model types.

Values are encoded as Base64 over DER bytes to keep cross-format support without requiring DER-specific runtimes. When used with the awesn1.kxs DER format, this fallback representation is bypassed and native DER TLV encoding/decoding is used.

Inheritors

Constructors

Link copied to clipboard
constructor(decodeElement: (Asn1Element) -> T, encodeElement: (T) -> Asn1Element)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
Link copied to clipboard
open override fun deserialize(decoder: Decoder): T
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: T)