Compare commits

...

2 Commits

Author SHA1 Message Date
be9a8a4369 bump version to 1.2.4
All checks were successful
/ publish (push) Successful in 4m57s
2025-12-12 15:47:47 +01:00
96d2c5785f implement String utilities
UByteArray::decodeToString(): String
String::encodeToUByteArray(): UByteArray
2025-12-12 15:44:39 +01:00
3 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
group = "com.infendro"
version = "1.2.3"
version = "1.2.4"
repositories {
mavenCentral()

View File

@@ -0,0 +1,4 @@
package com.infendro.bytearray
fun String.encodeToUByteArray(): UByteArray =
encodeToByteArray().toUByteArray()

View File

@@ -2,6 +2,9 @@ package com.infendro.bytearray
import com.infendro.bytearray.ByteOrder.BIG_ENDIAN
fun UByteArray.decodeToString(): String =
toByteArray().decodeToString()
infix fun UByteArray.and(
that: UByteArray,
): UByteArray {