toUnsignedInt() and toUnsignedLong() extension functions for Byte and Int

Hi,

Byte.toUnsignedInt()
Byte.toUnsignedLong()

Int.toUnsignedLong()

Above functions are available in java 8 and would be nice to see them in Kotlin too.
They are quite handy when one wants to read the value without considering the sign byte.

2 Likes

Thank you for suggestion, I’ve filed an issue https://youtrack.jetbrains.com/issue/KT-10477