Sylvain Patenaude
02/11/2020, 2:53 PMdiesieben07
02/11/2020, 2:55 PMSylvain Patenaude
02/11/2020, 3:01 PMUByteArray. These insigned types are implemented as inline classes if I remember correctly.
Is there a workaround for this?diesieben07
02/11/2020, 3:02 PMSylvain Patenaude
02/11/2020, 3:05 PMUByteArray and UByte.diesieben07
02/11/2020, 3:06 PMdiesieben07
02/11/2020, 3:17 PMSylvain Patenaude
02/11/2020, 3:17 PMfun parseByteArray(array: UByteArray): SomeClass {}. How can I work around the inline class limitation? Is there a way to wrap the unsigned classes in a usable way?diesieben07
02/11/2020, 3:19 PMbyte[] then you can write a Kotlin method which accepts ByteArray and converts it to UByteArray using toUByteArray().Sylvain Patenaude
02/11/2020, 3:58 PMtoByte(), toUByte(), toByteArray(), toUByteArray) are smart enough to handle negative signed bytes and all that, right?diesieben07
02/11/2020, 3:59 PM-1 will turn into 255, for example.