blob: 5c84780b8359c67f8d1ed026f88965a302baaf38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
@file:Suppress("unused")
package org.kotlintestmpp
import kotlinx.cinterop.CPointed
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ExperimentalForeignApi
/**
* Low-level Linux function
*/
@OptIn(ExperimentalForeignApi::class)
fun <T : CPointed> printPointerRawValue(pointer: CPointer<T>) {
println(pointer.rawValue)
}
|