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

Add ability to insert line breaks when encoding #78

Closed 05nelsonm closed 1 year ago

05nelsonm commented 1 year ago

When encoding data, sometimes it is preferable to insert line breaks every X number of characters of output. All EncoderDecoder.Config's should be configurable to do this (like with Crockford's ability to insert hyphens) in order to properly pre-calculate the encoded outsize.