Remove bignum dep
This commit is contained in:
6 files changed
+27
-21
No files matched your search
+10
@@ -26,3 +26,13 @@ fun UByteArray.toHexString() : String {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun Array<UByte>.hexColumnsPrint(chunk: Int = 16) {
|
||||
val printout = this.map { it.toString(16).padStart(2, '0') }.chunked(chunk)
|
||||
printout.forEach { println(it.joinToString(separator = " ") { it.toUpperCase() }) }
|
||||
}
|
||||
|
||||
fun UByteArray.hexColumnsPrint(chunk: Int = 16) {
|
||||
val printout = this.map { it.toString(16).padStart(2, '0') }.chunked(chunk)
|
||||
printout.forEach { println(it.joinToString(separator = " ") { it.toUpperCase() }) }
|
||||
}
|
||||
Reference in new issue
Block a user