refactor encodings

This commit is contained in:
2026-01-20 16:59:05 +01:00
parent 8290955755
commit 6283c2f44d
11 changed files with 83 additions and 154 deletions

View File

@@ -1,10 +1,6 @@
package com.infendro.encoding
interface Encoding {
val alphabet: ByteArray
val base: Int
get() = alphabet.size
fun encode(bytes: ByteArray): ByteArray
fun decode(bytes: ByteArray): ByteArray
}