Sylvain Patenaude
12/04/2019, 4:29 PMbyte[] BitConverter.GetBytes(Int32)
will preserve the computer architecture byte order (big-endian or little-endian).
Is there some equivalent (keeping the proper byte order) to this method in Kotlin?
NOTE: It is to be used in a Kotlin multiplatform context.Kris Wong
12/04/2019, 4:35 PMByteArray.setIntAt(index: Int, value: Int)
Sylvain Patenaude
12/04/2019, 4:49 PMByteArray
. Is it an extension method available for native only?Kris Wong
12/04/2019, 4:50 PMBig Chungus
12/04/2019, 4:51 PMSylvain Patenaude
12/04/2019, 4:53 PMBig Chungus
12/04/2019, 4:54 PMKris Wong
12/04/2019, 4:55 PMKris Wong
12/04/2019, 4:55 PMSylvain Patenaude
12/04/2019, 4:58 PMSylvain Patenaude
12/04/2019, 6:28 PMsetIntAt
available for UByteArray
as well or only ByteArray
?Sylvain Patenaude
12/04/2019, 6:42 PMUByteArray
, so I'll use ByteArray
and convert at the end.Kris Wong
12/04/2019, 6:48 PM