Base64ByteArraySerializer

This commit is contained in:
InsanusMokrassar 2021-01-17 16:53:24 +06:00
parent 0c9283eb87
commit 9acb9af338
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,10 @@
## 0.4.18
* `Serialization`
* `Base 64`
* New `Base64ByteArraySerializer` has been added
## 0.4.17
* `Common`

View File

@ -18,3 +18,4 @@ open class Base64Serializer<T>(
}
object Base64StringSerializer : Base64Serializer<String>({ it }, { it })
object Base64ByteArraySerializer : Base64Serializer<ByteArray>({ it.decodeToString() }, { it.encodeToByteArray() })