mquigley
08/11/2017, 6:25 PM0xAABBCCDD_11223344L cannot exist in Kotlin? Neither can the value of Long.MIN_VALUE, which is actually represented by -9223372036854775807L - 1L?dalexander
08/11/2017, 6:32 PMval someInt = 0xFFFFFFFF.toInt() which is sufficient to make the compiler happy (because 0xFFFFFFFF is a long). It wouldn’t surprise me if longs have an issue though because there’s no primitive type to cast down from.mquigley
08/11/2017, 6:34 PMjava.lang.Long.parseUnsignedLong("AABBCCDD11223344", 16)dalexander
08/11/2017, 6:35 PMRuckus
08/11/2017, 7:01 PM"AABBCCDD11223344".toLong(16) work?mquigley
08/11/2017, 8:44 PMRuckus
08/11/2017, 9:06 PMkingsley
08/14/2017, 9:43 AMval String.UL: Long
get() = java.lang.Long.parseUnsignedLong(this, 16)
So, you could use it like:
"AABBCCDD11223344".ULmquigley
08/14/2017, 5:15 PM