All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.jetbrains.skia.OutputWStream.kt Maven / Gradle / Ivy

There is a newer version: 0.8.15
Show newest version
package org.jetbrains.skia

import org.jetbrains.skia.impl.Library.Companion.staticLoad
import org.jetbrains.skia.impl.Stats
import org.jetbrains.skia.impl.NativePointer

class OutputWStream(out: OutputStream?) : WStream(_nMake(out), _FinalizerHolder.PTR) {
    companion object {
        init {
            staticLoad()
        }
    }

    private val _out: OutputStream?
    private object _FinalizerHolder {
        val PTR = OutputWStream_nGetFinalizer()
    }

    init {
        Stats.onNativeCall()
        _out = out
    }
}


@ExternalSymbolName("org_jetbrains_skia_OutputWStream__1nGetFinalizer")
private external fun OutputWStream_nGetFinalizer(): NativePointer

@ExternalSymbolName("org_jetbrains_skia_OutputWStream__1nMake")
private external fun _nMake(out: OutputStream?): NativePointer




© 2015 - 2024 Weber Informatics LLC | Privacy Policy