diff --git a/skiko/src/commonMain/kotlin/org/jetbrains/skia/PixelRef.kt b/skiko/src/commonMain/kotlin/org/jetbrains/skia/PixelRef.kt index b44125c09..122f101be 100644 --- a/skiko/src/commonMain/kotlin/org/jetbrains/skia/PixelRef.kt +++ b/skiko/src/commonMain/kotlin/org/jetbrains/skia/PixelRef.kt @@ -27,7 +27,7 @@ class PixelRef internal constructor(ptr: NativePointer) : RefCnt(ptr) { } finally { reachabilityBarrier(this) } - val rowBytes: NativePointer + val rowBytes: Int get() = try { Stats.onNativeCall() PixelRef_nGetRowBytes(_ptr) @@ -85,7 +85,7 @@ class PixelRef internal constructor(ptr: NativePointer) : RefCnt(ptr) { @ExternalSymbolName("org_jetbrains_skia_PixelRef__1nGetRowBytes") @ModuleImport("./skiko.mjs", "org_jetbrains_skia_PixelRef__1nGetRowBytes") -private external fun PixelRef_nGetRowBytes(ptr: NativePointer): NativePointer +private external fun PixelRef_nGetRowBytes(ptr: NativePointer): Int @ExternalSymbolName("org_jetbrains_skia_PixelRef__1nGetGenerationId") @ModuleImport("./skiko.mjs", "org_jetbrains_skia_PixelRef__1nGetGenerationId") @@ -109,4 +109,4 @@ private external fun _nGetWidth(ptr: NativePointer): Int @ExternalSymbolName("org_jetbrains_skia_PixelRef__1nGetHeight") @ModuleImport("./skiko.mjs", "org_jetbrains_skia_PixelRef__1nGetHeight") -private external fun _nGetHeight(ptr: NativePointer): Int \ No newline at end of file +private external fun _nGetHeight(ptr: NativePointer): Int