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


#1

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.


Byte to unsigned short conversion
#2

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