[Native] Implement 'kotlinx.cinterop.UnsafeNumber' interface

^KT-48459
This commit is contained in:
sebastian.sellmair
2021-08-27 13:58:18 +02:00
committed by Space
parent 814a147a53
commit bff62aba5f
@@ -0,0 +1,18 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kotlinx.cinterop
/**
* Marker for typealias that will represent numbers of different bit width on at least two platforms.
*
* @param actualPlatformTypes: Contains the underlying platform types represented as `{konanTarget}: {type fqn}`
* e.g. ["linux_x64: kotlin.Int", "linux_arm64: kotlin.Long"]
*/
@Suppress("unused") // Is emitted by the Commonizer
@Target(AnnotationTarget.TYPEALIAS)
@Retention(AnnotationRetention.BINARY)
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
annotation class UnsafeNumber(val actualPlatformTypes: Array<String>)