Compare commits

...

2 Commits

Author SHA1 Message Date
0daa5d68a4 bump version to 1.2.1
All checks were successful
/ publish (push) Successful in 2m32s
2025-11-10 15:52:46 +01:00
bd9531b60b fix padEnd 2025-11-10 15:52:24 +01:00
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -52,10 +52,10 @@ fun ByteArray.padEnd(
padByte: Byte, padByte: Byte,
): ByteArray { ): ByteArray {
return buildList { return buildList {
addAll(this)
repeat(length - size) { repeat(length - size) {
add(padByte) add(padByte)
} }
addAll(this)
}.toByteArray() }.toByteArray()
} }

View File

@@ -49,10 +49,10 @@ fun UByteArray.padEnd(
padByte: UByte, padByte: UByte,
): UByteArray { ): UByteArray {
return buildList { return buildList {
addAll(this)
repeat(length - size) { repeat(length - size) {
add(padByte) add(padByte)
} }
addAll(this)
}.toUByteArray() }.toUByteArray()
} }