Compare commits
2 Commits
0daa5d68a4
...
941a486217
| Author | SHA1 | Date | |
|---|---|---|---|
|
941a486217
|
|||
|
3a0a947fb0
|
@@ -1,5 +1,5 @@
|
||||
group = "com.infendro"
|
||||
version = "1.2.1"
|
||||
version = "1.2.2"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -40,10 +40,10 @@ fun ByteArray.padStart(
|
||||
padByte: Byte,
|
||||
): ByteArray {
|
||||
return buildList {
|
||||
repeat(length - size) {
|
||||
repeat(length - this@padStart.size) {
|
||||
add(padByte)
|
||||
}
|
||||
addAll(this)
|
||||
addAll(this@padStart)
|
||||
}.toByteArray()
|
||||
}
|
||||
|
||||
@@ -52,8 +52,8 @@ fun ByteArray.padEnd(
|
||||
padByte: Byte,
|
||||
): ByteArray {
|
||||
return buildList {
|
||||
addAll(this)
|
||||
repeat(length - size) {
|
||||
addAll(this@padEnd)
|
||||
repeat(length - this@padEnd.size) {
|
||||
add(padByte)
|
||||
}
|
||||
}.toByteArray()
|
||||
|
||||
@@ -37,10 +37,10 @@ fun UByteArray.padStart(
|
||||
padByte: UByte,
|
||||
): UByteArray {
|
||||
return buildList {
|
||||
repeat(length - size) {
|
||||
repeat(length - this@padStart.size) {
|
||||
add(padByte)
|
||||
}
|
||||
addAll(this)
|
||||
addAll(this@padStart)
|
||||
}.toUByteArray()
|
||||
}
|
||||
|
||||
@@ -49,8 +49,8 @@ fun UByteArray.padEnd(
|
||||
padByte: UByte,
|
||||
): UByteArray {
|
||||
return buildList {
|
||||
addAll(this)
|
||||
repeat(length - size) {
|
||||
addAll(this@padEnd)
|
||||
repeat(length - this@padEnd.size) {
|
||||
add(padByte)
|
||||
}
|
||||
}.toUByteArray()
|
||||
|
||||
Reference in New Issue
Block a user