Out of curiosity, how are unsigned types handled by Kotlin/Native?
The docs just say, "All supported C types have corresponding representations in Kotlin: Signed, unsigned integral and floating point types are mapped to their Kotlin counterpart with the same width." (
https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md)
What happens if a native API returns an unsigned type with a value that is out of range for the corresponding signed type in Kotlin (e.g. an unsigned short with a value of 65535)?