Compare commits
2 Commits
f647abc0a4
...
0daa5d68a4
| Author | SHA1 | Date | |
|---|---|---|---|
|
0daa5d68a4
|
|||
|
bd9531b60b
|
@@ -1,5 +1,5 @@
|
|||||||
group = "com.infendro"
|
group = "com.infendro"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user