05nelsonm / encoding

A Kotlin Multiplatform library for configurable, streamable, efficient and extensible Encoding/Decoding with support for base16/32/64.
Apache License 2.0
33 stars 5 forks source link

Migrate `encoding-base32` to use `encoding-core` #41

Closed 05nelsonm closed 1 year ago

05nelsonm commented 1 year ago

Part 4 of #36

Migrate the base32 module to utilize the encoding-core module. This is an opportunity to write the Base16 Decoder/Encoder in package io.matthewnelson.encoding.base32 and remove component, then have all the current method bodies simply use it as to not disturb the current APIs and remain backwards compatible.

Related to #29

05nelsonm commented 1 year ago

Note: don't touch current base32 tests. This should serve as a check that the old code is functioning as expected even though the implementation was swapped out.

05nelsonm commented 1 year ago

Need to remember to clean up the old code and use top level values for Base32.Default and Base32.Hex instead of re-creating them every time the old extension functions are called.