Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
actual class FFIArena
expect class FFIArena
actual class FFIArena
actual class FFIArena
actual class FFIArena
actual class FFIArena
Link copied to clipboard
interface FFICallback
Link copied to clipboard
inline class FFIDelegateBoolProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateByteProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateDoubleProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateFFIPointerProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateFFIPointerPropertyT<T>(val offset: Int)
Link copied to clipboard
class FFIDelegateFixedBytesProperty(val offset: Int, val size: Int)
Link copied to clipboard
inline class FFIDelegateFloatProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateIntProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateLongProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateNativeDoubleProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateNativeLongProperty(val offset: Int)
Link copied to clipboard
inline class FFIDelegateShortProperty(val offset: Int)
Link copied to clipboard
data class FFIFuncConfig(val wideString: Boolean = false, val altAbiConvention: Boolean = false)
Link copied to clipboard
open class FFILib(val paths: List<String>, val lazyCreate: Boolean = true) : AutoCloseable
Link copied to clipboard
interface FFILibSym : AutoCloseable
Link copied to clipboard
class FFILibSymJS(val lib: FFILib) : FFILibSym
Link copied to clipboard
class FFILibSymJVM(val lib: FFILib) : FFILibSym
Link copied to clipboard
Link copied to clipboard
actual class FFIMemory
expect class FFIMemory
actual typealias FFIMemory = Uint8Array
actual typealias FFIMemory = Memory
actual typealias FFIMemory = ByteArray
actual class FFIMemory
Link copied to clipboard
class FFINativeLong(val value: Long)

Might be 32-bit or 64-bit depending on the OS

Link copied to clipboard
actual class FFIPointer
expect class FFIPointer
actual typealias FFIPointer = DenoPointer
actual typealias FFIPointer = Pointer
actual class FFIPointer
actual class FFIPointer
Link copied to clipboard
data class FFIPointerArray(val data: IntArray) : List<FFIPointer?>
Link copied to clipboard
open class FFIStructure(var ptr: FFIPointer?)
Link copied to clipboard
inline class FFITypedPointer<T>(val pointer: FFIPointer)
Link copied to clipboard
@JvmInline
value class FFIVarargs(val args: List<Any?>)
Link copied to clipboard
class FuncType(val params: List<KType?>, val ret: KType?)
Link copied to clipboard
open class LDLibraries
Link copied to clipboard
open class LibraryResolver
Link copied to clipboard
open class SymbolResolverFFILib(val resolve: (String) -> FFIPointer?) : FFILib
Link copied to clipboard
external class WebAssembly

Properties

Link copied to clipboard
actual val FFIPointer?.address: Long
expect val FFIPointer?.address: Long
actual val FFIPointer?.address: Long
actual val FFIPointer?.address: Long
Link copied to clipboard
val DirectBuffer_addressHandle: MethodHandle
Link copied to clipboard
Link copied to clipboard
actual val FFI_POINTER_SIZE: Int
expect val FFI_POINTER_SIZE: Int
actual val FFI_POINTER_SIZE: Int = 8
actual val FFI_POINTER_SIZE: Int = 8
actual val FFI_POINTER_SIZE: Int
actual val FFI_POINTER_SIZE: Int
Link copied to clipboard
actual val FFI_SUPPORTED: Boolean = false
expect val FFI_SUPPORTED: Boolean
actual val FFI_SUPPORTED: Boolean
actual val FFI_SUPPORTED: Boolean = true
actual val FFI_SUPPORTED: Boolean = false
actual val FFI_SUPPORTED: Boolean = false
Link copied to clipboard
actual val Buffer.pointer: FFIPointer
expect val Buffer.pointer: FFIPointer
actual val Buffer.pointer: FFIPointer
actual val Buffer.pointer: FFIPointer
actual val Buffer.pointer: FFIPointer
actual val Buffer.pointer: FFIPointer
Link copied to clipboard
actual val FFIPointer?.str: String
expect val FFIPointer?.str: String
actual val FFIPointer?.str: String
actual val FFIPointer?.str: String

Functions

Link copied to clipboard
inline fun FFIArena.allocBytes(size: Int, gen: (Int) -> Byte): FFIPointer
Link copied to clipboard
actual fun arraycopy(src: FFIPointer, srcPos: Int, dst: FFIPointer, dstPos: Int, length: Int)
expect fun arraycopy(src: FFIPointer, srcPos: Int, dst: FFIPointer, dstPos: Int, length: Int)
fun arraycopy(src: FFIPointer, srcPos: Int, dst: Buffer, dstPos: Int, length: Int)
fun arraycopy(src: Buffer, srcPos: Int, dst: FFIPointer, dstPos: Int, length: Int)
actual fun arraycopy(src: FFIPointer, srcPos: Int, dst: FFIPointer, dstPos: Int, length: Int)
actual fun arraycopy(src: FFIPointer, srcPos: Int, dst: FFIPointer, dstPos: Int, length: Int)
Link copied to clipboard
actual fun <T> FFIPointer.castToFunc(type: KType, config: FFIFuncConfig): T
inline fun <T> FFIPointer.castToFunc(): T
expect fun <T> FFIPointer.castToFunc(type: KType, config: FFIFuncConfig = FFIFuncConfig.DEFAULT): T
actual fun <T> FFIPointer.castToFunc(type: KType, config: FFIFuncConfig): T
actual fun <T> FFIPointer.castToFunc(type: KType, config: FFIFuncConfig): T
Link copied to clipboard
actual fun CreateFFIMemory(bytes: ByteArray): FFIMemory
actual fun CreateFFIMemory(size: Int): FFIMemory
expect fun CreateFFIMemory(bytes: ByteArray): FFIMemory
expect fun CreateFFIMemory(size: Int): FFIMemory
actual fun CreateFFIMemory(bytes: ByteArray): FFIMemory
actual fun CreateFFIMemory(size: Int): FFIMemory
actual fun CreateFFIMemory(bytes: ByteArray): FFIMemory
actual fun CreateFFIMemory(size: Int): FFIMemory
actual fun CreateFFIMemory(bytes: ByteArray): FFIMemory
actual fun CreateFFIMemory(size: Int): FFIMemory
actual fun CreateFFIMemory(bytes: ByteArray): FFIMemory
actual fun CreateFFIMemory(size: Int): FFIMemory
Link copied to clipboard
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
expect fun CreateFFIPointer(ptr: Long): FFIPointer?
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
@JvmName(name = "FFIPointerCreation")
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
Link copied to clipboard
inline fun <T : Function<*>> createJNAFunctionToPlainFunc(func: Function, config: FFIFuncConfig): T
fun <T : Function<*>> createJNAFunctionToPlainFunc(func: Function?, type: KType, config: FFIFuncConfig, name: String?): T
Link copied to clipboard
actual fun <T> FFICreateProxyFunction(type: KType, handler: (args: Array<Any?>) -> Any?): T
inline fun <T> FFICreateProxyFunction(noinline handler: (args: Array<Any?>) -> Any?): T
expect fun <T> FFICreateProxyFunction(type: KType, handler: (args: Array<Any?>) -> Any?): T
actual fun <T> FFICreateProxyFunction(type: KType, handler: (args: Array<Any?>) -> Any?): T
actual fun <T> FFICreateProxyFunction(type: KType, handler: (args: Array<Any?>) -> Any?): T
actual fun <T> FFICreateProxyFunction(type: KType, handler: (args: Array<Any?>) -> Any?): T
actual fun <T> FFICreateProxyFunction(type: KType, handler: (args: Array<Any?>) -> Any?): T
Link copied to clipboard
actual fun FFILibSym(lib: FFILib): FFILibSym
expect fun FFILibSym(lib: FFILib): FFILibSym
actual fun FFILibSym(lib: FFILib): FFILibSym
actual fun FFILibSym(lib: FFILib): FFILibSym
actual fun FFILibSym(lib: FFILib): FFILibSym
actual fun FFILibSym(lib: FFILib): FFILibSym
Link copied to clipboard
inline fun FFIMemory(bytes: ByteArray, unit: Unit = Unit): FFIMemory
inline fun FFIMemory(size: Int, unit: Unit = Unit): FFIMemory
Link copied to clipboard
inline fun FFIPointer(ptr: Long, unit: Unit = Unit): FFIPointer?
Link copied to clipboard
Link copied to clipboard
inline fun <T> ffiScoped(block: FFIArena.() -> T): T
Link copied to clipboard
fun KType.funcToDenoDef(): dynamic
Link copied to clipboard
operator fun FFITypedPointer<FFIPointer?>.get(index: Int): FFIPointer?
@JvmName(name = "set_typedPointer")
operator fun <T> FFITypedPointer<FFITypedPointer<T>>.get(index: Int): FFITypedPointer<T>?
operator fun FFITypedPointer<Byte>.get(index: Int): Byte
operator fun FFITypedPointer<Double>.get(index: Int): Double
operator fun FFITypedPointer<Float>.get(index: Int): Float
operator fun FFITypedPointer<Int>.get(index: Int): Int
operator fun FFITypedPointer<Long>.get(index: Int): Long
operator fun FFITypedPointer<Short>.get(index: Int): Short
Link copied to clipboard
fun FFIPointer.getAlignedF32(offset: Int = 0): Float
Link copied to clipboard
fun FFIPointer.getAlignedF64(offset: Int = 0): Double
Link copied to clipboard
Link copied to clipboard
fun FFIPointer.getAlignedS16(offset: Int = 0): Short
Link copied to clipboard
fun FFIPointer.getAlignedS32(offset: Int = 0): Int
Link copied to clipboard
fun FFIPointer.getAlignedS64(offset: Int = 0): Long
Link copied to clipboard
fun FFIPointer.getByteArray(size: Int, byteOffset: Int = 0): ByteArray
Link copied to clipboard
fun getCString(ptr: FFIPointer?): String?
Link copied to clipboard
fun FFIPointer.getDataView(offset: Int, size: Int): DataView
Link copied to clipboard
actual fun FFIPointer.getF32(byteOffset: Int): Float
expect fun FFIPointer.getF32(byteOffset: Int = 0): Float
actual fun FFIPointer.getF32(byteOffset: Int): Float
actual fun FFIPointer.getF32(byteOffset: Int): Float
Link copied to clipboard
actual fun FFIPointer.getF64(byteOffset: Int): Double
expect fun FFIPointer.getF64(byteOffset: Int = 0): Double
actual fun FFIPointer.getF64(byteOffset: Int): Double
actual fun FFIPointer.getF64(byteOffset: Int): Double
Link copied to clipboard
fun FFIPointer.getFFIPointer(byteOffset: Int = 0): FFIPointer?
fun Buffer.getFFIPointer(offset: Int): FFIPointer?
Link copied to clipboard
actual fun FFIPointer.getIntArray(size: Int, byteOffset: Int): IntArray
expect fun FFIPointer.getIntArray(size: Int, byteOffset: Int = 0): IntArray
actual fun FFIPointer.getIntArray(size: Int, byteOffset: Int): IntArray
actual fun FFIPointer.getIntArray(size: Int, byteOffset: Int): IntArray
Link copied to clipboard
actual fun FFIPointer.getS16(byteOffset: Int): Short
expect fun FFIPointer.getS16(byteOffset: Int = 0): Short
actual fun FFIPointer.getS16(byteOffset: Int): Short
actual fun FFIPointer.getS16(byteOffset: Int): Short
Link copied to clipboard
actual fun FFIPointer.getS32(byteOffset: Int): Int
expect fun FFIPointer.getS32(byteOffset: Int = 0): Int
actual fun FFIPointer.getS32(byteOffset: Int): Int
actual fun FFIPointer.getS32(byteOffset: Int): Int
Link copied to clipboard
actual fun FFIPointer.getS64(byteOffset: Int): Long
expect fun FFIPointer.getS64(byteOffset: Int = 0): Long
actual fun FFIPointer.getS64(byteOffset: Int): Long
actual fun FFIPointer.getS64(byteOffset: Int): Long
Link copied to clipboard
actual fun FFIPointer.getS8(byteOffset: Int): Byte
expect fun FFIPointer.getS8(byteOffset: Int = 0): Byte
actual fun FFIPointer.getS8(byteOffset: Int): Byte
actual fun FFIPointer.getS8(byteOffset: Int): Byte
Link copied to clipboard
fun FFIPointer.getShortArray(size: Int, byteOffset: Int = 0): ShortArray
Link copied to clipboard
actual fun FFIPointer.getStringz(): String
expect fun FFIPointer.getStringz(): String
actual fun FFIPointer.getStringz(): String
actual fun FFIPointer.getStringz(): String
Link copied to clipboard
fun Buffer.getUnalignedFFIPointer(offset: Int): FFIPointer?
Link copied to clipboard
actual fun FFIPointer.getWideStringz(): String
expect fun FFIPointer.getWideStringz(): String
actual fun FFIPointer.getWideStringz(): String
actual fun FFIPointer.getWideStringz(): String
Link copied to clipboard
operator fun FFIPointer.plus(offset: Int): FFIPointer
Link copied to clipboard
Link copied to clipboard
operator fun FFITypedPointer<FFIPointer?>.set(index: Int, value: FFIPointer?)
@JvmName(name = "set_typedPointer")
operator fun <T> FFITypedPointer<FFITypedPointer<T>>.set(index: Int, value: FFITypedPointer<T>?)
operator fun FFITypedPointer<Byte>.set(index: Int, value: Byte)
operator fun FFITypedPointer<Double>.set(index: Int, value: Double)
operator fun FFITypedPointer<Float>.set(index: Int, value: Float)
operator fun FFITypedPointer<Int>.set(index: Int, value: Int)
operator fun FFITypedPointer<Long>.set(index: Int, value: Long)
operator fun FFITypedPointer<Short>.set(index: Int, value: Short)
Link copied to clipboard
actual fun FFIPointer.set16(value: Short, byteOffset: Int)
expect fun FFIPointer.set16(value: Short, byteOffset: Int = 0)
actual fun FFIPointer.set16(value: Short, byteOffset: Int)
actual fun FFIPointer.set16(value: Short, byteOffset: Int)
Link copied to clipboard
actual fun FFIPointer.set32(value: Int, byteOffset: Int)
expect fun FFIPointer.set32(value: Int, byteOffset: Int = 0)
actual fun FFIPointer.set32(value: Int, byteOffset: Int)
actual fun FFIPointer.set32(value: Int, byteOffset: Int)
Link copied to clipboard
actual fun FFIPointer.set64(value: Long, byteOffset: Int)
expect fun FFIPointer.set64(value: Long, byteOffset: Int = 0)
actual fun FFIPointer.set64(value: Long, byteOffset: Int)
actual fun FFIPointer.set64(value: Long, byteOffset: Int)
Link copied to clipboard
actual fun FFIPointer.set8(value: Byte, byteOffset: Int)
expect fun FFIPointer.set8(value: Byte, byteOffset: Int = 0)
actual fun FFIPointer.set8(value: Byte, byteOffset: Int)
actual fun FFIPointer.set8(value: Byte, byteOffset: Int)
Link copied to clipboard
fun FFIPointer.setAligned16(value: Short, offset: Int = 0)
Link copied to clipboard
fun FFIPointer.setAligned32(value: Int, offset: Int = 0)
Link copied to clipboard
fun FFIPointer.setAligned64(value: Long, offset: Int = 0)
Link copied to clipboard
fun FFIPointer.setAlignedF32(value: Float, offset: Int = 0)
Link copied to clipboard
fun FFIPointer.setAlignedF64(value: Double, offset: Int = 0)
Link copied to clipboard
fun FFIPointer.setAlignedFFIPointer(value: FFIPointer?, offset: Int = 0)
Link copied to clipboard
actual fun FFIPointer.setF32(value: Float, byteOffset: Int)
expect fun FFIPointer.setF32(value: Float, byteOffset: Int = 0)
actual fun FFIPointer.setF32(value: Float, byteOffset: Int)
actual fun FFIPointer.setF32(value: Float, byteOffset: Int)
Link copied to clipboard
actual fun FFIPointer.setF64(value: Double, byteOffset: Int)
expect fun FFIPointer.setF64(value: Double, byteOffset: Int = 0)
actual fun FFIPointer.setF64(value: Double, byteOffset: Int)
actual fun FFIPointer.setF64(value: Double, byteOffset: Int)
Link copied to clipboard
fun FFIPointer.setFFIPointer(value: FFIPointer?, byteOffset: Int = 0)
fun Buffer.setFFIPointer(offset: Int, value: FFIPointer?)
Link copied to clipboard
fun Buffer.setUnalignedFFIPointer(offset: Int, value: FFIPointer?)
Link copied to clipboard
fun FFIPointer.strlen(max: Int = Int.MAX_VALUE): Int
Link copied to clipboard
fun KClassifier.toDenoFFI(ret: Boolean): dynamic
fun KType.toDenoFFI(ret: Boolean): dynamic
Link copied to clipboard
Link copied to clipboard
actual inline fun <T> FFIMemory.usePointer(block: (pointer: FFIPointer) -> T): T
actual inline fun <T> Buffer.usePointer(block: (pointer: FFIPointer) -> T): T
expect inline fun <T> FFIMemory.usePointer(block: (pointer: FFIPointer) -> T): T
expect inline fun <T> Buffer.usePointer(block: (pointer: FFIPointer) -> T): T
actual inline fun <T> Buffer.usePointer(block: (pointer: FFIPointer) -> T): T
actual inline fun <T> FFIMemory.usePointer(block: (pointer: FFIPointer) -> T): T
actual inline fun <T> Buffer.usePointer(block: (pointer: FFIPointer) -> T): T
Link copied to clipboard
fun FFIPointer.withOffset(offset: Int): FFIPointer?