revert: partial code
This commit is contained in:
parent
ba8a4b87cb
commit
fd4023194a
1 changed files with 6 additions and 3 deletions
|
@ -12,10 +12,13 @@ fun String.decodeHex(): ByteArray {
|
|||
return out
|
||||
}
|
||||
|
||||
fun ByteArray.encodeHex(): String = buildString {
|
||||
for (element in this@encodeHex) {
|
||||
append(String.format("%02X", element))
|
||||
fun ByteArray.encodeHex(): String {
|
||||
val sb = StringBuilder()
|
||||
val length = size
|
||||
for (i in 0 until length) {
|
||||
sb.append(String.format("%02X", this[i]))
|
||||
}
|
||||
return sb.toString()
|
||||
}
|
||||
|
||||
fun formatFreeSpace(size: Int): String =
|
||||
|
|
Loading…
Add table
Reference in a new issue