wineluis
for (i in byteArray.indices) { result += Integer.toString((byteArray[i] and 0xFF) + 0x100, 16).substring(1) }