EncodedFormat
Text StringFormat that produces short, predictable string tokens by composing:
A binary format (e.g. PackedFormat,
ProtoBuf).An optional PayloadTransform (CompactZeros, checksum, encryption, ECC, …).
An ASCII-safe byte encoding (e.g. Base62, Base64, Base36, Base85).
Typical use:
encodeToString: serialize -> transform.encode -> encode bytes to text.decodeFromString: decode text to bytes -> transform.decode -> deserialize.
Use the EncodedFormat builder function to create a customized instance.
Inheritors
Constructors
Link copied to clipboard
constructor(codec: ByteEncoding = Base62, transform: PayloadTransform? = null, binaryFormat: BinaryFormat = PackedFormat)
Secondary constructor for direct instantiation without the builder.
Properties
EncodedFormat
constructor(codec: ByteEncoding = Base62, transform: PayloadTransform? = null, binaryFormat: BinaryFormat = PackedFormat)(source)
Secondary constructor for direct instantiation without the builder.
configuration
decodeFromString
encodeToString
serializersModule
Delegates to the underlying BinaryFormat's serializers module.