fix padEnd
This commit is contained in:
@@ -49,10 +49,10 @@ fun UByteArray.padEnd(
|
||||
padByte: UByte,
|
||||
): UByteArray {
|
||||
return buildList {
|
||||
addAll(this)
|
||||
repeat(length - size) {
|
||||
add(padByte)
|
||||
}
|
||||
addAll(this)
|
||||
}.toUByteArray()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user