Cleanup deprecated methods.

Noticed a handful of deprecated methods and minor warnings while looking around.
Replaces with recommended methods
This commit is contained in:
Renee Vandervelde committed 2024-07-02 09:50:45 -05:00
1 parent b919de5d71
commit bd3cbb1662
9 files changed
+16 -14

No files matched your search

@@ -29,10 +29,10 @@ 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() }) }
printout.forEach { println(it.joinToString(separator = " ") { it.uppercase() }) }
}
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() }) }
printout.forEach { println(it.joinToString(separator = " ") { it.uppercase() }) }
}