The Kotlin backend representation of a Slice is currently not compatible with 32-bit architectures. The Kotlin slice hardcodes the length as a 64-bit integer (a Long), but the corresponding native code expects the length to be a usize.
This PR adds a size_t representation for Kotlin, and uses it for the slice length.
The Kotlin backend representation of a Slice is currently not compatible with 32-bit architectures. The Kotlin slice hardcodes the length as a 64-bit integer (a
Long
), but the corresponding native code expects the length to be ausize
.This PR adds a
size_t
representation for Kotlin, and uses it for the slice length.