Is there an easy way to convert an Int to a ByteAr...
# getting-started
j
Is there an easy way to convert an Int to a ByteArray in Kotlin (Multiplatform so no JVM methods)
Same for long would be helpful
t
I would declare an expect/actual for this so you can integrate with the platform helpers for this. Or you can roll your own using the bitwise operators.
👍 1