implement numeric encodings, optimize
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
package com.infendro.encoding
|
||||
|
||||
object Base8 : Encoding() {
|
||||
private val CHARACTERS = ubyteArrayOf(
|
||||
0x30U, 0x31U, 0x32U, 0x33U, 0x34U, 0x35U, 0x36U, 0x37U,
|
||||
)
|
||||
|
||||
override fun encode(
|
||||
bytes: UByteArray,
|
||||
) = encode(bytes, CHARACTERS)
|
||||
|
||||
override fun decode(
|
||||
bytes: UByteArray,
|
||||
) = decode(bytes, CHARACTERS)
|
||||
}
|
||||
Reference in New Issue
Block a user