mbonnin
10/04/2023, 6:06 PMplatform.darwin.NSUInteger
that's marked @UnsafeNumber
, can I know what to put in actualPlatformTypes
if I want to propagate the @UnsafeNumber
?
@UnsafeNumber(["what here?"])
fun stuff(foo: NSUInteger) {
// stuff
}
Rick Clephas
10/04/2023, 6:25 PMmbonnin
10/04/2023, 6:27 PMNSUInteger
and friends already?NSUInteger
symbol and copy/paste what's there but it's somehow not thereRick Clephas
10/04/2023, 6:31 PMIdeally I was expecting to be able to Ctrl click the NSUInteger symbol and copy/paste what’s there but it’s somehow not thereAh that was indeed what I was expecting as well 😅
watchosArm32
and watchosArm64
use UInt
the other non-deprecated Apple targets are using ULong
.
So in that case the following should be it:
@UnsafeNumber(["ios_arm64:kotlin.ULong", "ios_x64:kotlin.ULong", "ios_simulator_arm64:kotlin.ULong", "watchos_arm32:kotlin.UInt", "watchos_arm64:kotlin.UInt", "watchos_x64:kotlin.ULong", "watchos_simulator_arm64:kotlin.ULong", "watchos_device_arm64:kotlin.ULong", "tvos_arm64:kotlin.ULong", "tvos_x64:kotlin.ULong", "tvos_simulator_arm64:kotlin.ULong", "macos_x64:kotlin.ULong", "macos_arm64:kotlin.ULong"])
mbonnin
10/04/2023, 6:47 PMRick Clephas
10/04/2023, 6:52 PM@UnsafeNumber
without the values 🤔mbonnin
10/04/2023, 7:01 PM