refactor encodings
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user