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

Rework `Decoder.decodeToArray` extension functions #50

Closed 05nelsonm closed 1 year ago

05nelsonm commented 1 year ago

The Decoder extension function names should be changed to decodeToByteArray and decodeToByteArrayOrNull to follow the Encoder extension function naming convention.

Need to also think about adding extension functions decodeToCharArray and decodeToString.

05nelsonm commented 1 year ago

Also, instead of using String, can instead use CharSequence which will open things up to more acceptable types.

05nelsonm commented 1 year ago

Need to also think about adding extension functions decodeToCharArray and decodeToString.

Might do later in a separate issue, or later release if the need arises. Will think on it.