kencode

Base85

open class Base85(alphabet: CharArray) : ByteEncoding(source)

Base85 codec: 4 bytes to 5 characters, and a final 1–3 bytes to 2–4 characters.

Inheritors

Constructors

Base85

constructor(alphabet: CharArray)(source)

Types

Link copied to clipboard
object Default : Base85

Codec with the ASCII85 alphabet.

Functions

decode

open override fun decode(input: CharSequence): ByteArray(source)

Decodes input back into bytes.

encode

open override fun encode(input: ByteArray, offset: Int = 0, length: Int = input.size - offset): String(source)

Encodes length bytes of input starting at offset.