Package-level declarations

Types

Link copied to clipboard
open class ExecutableResolver(val fs: SyncIO)
Link copied to clipboard
actual class FFIArena
expect 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)
Link copied to clipboard
interface FFILibSym : Closeable
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 class FFIMemory
actual typealias FFIMemory = Uint8Array
actual typealias FFIMemory = Memory
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 class FFIPointer
actual typealias FFIPointer = DenoPointer
actual typealias FFIPointer = Pointer
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
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(val fs: SyncIO)
Link copied to clipboard
open class LibraryResolver(val fs: SyncIO, val platform: Platform)
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
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
actual val FFI_POINTER_SIZE: Int = 8
actual val FFI_POINTER_SIZE: Int = 8
Link copied to clipboard
actual val FFI_SUPPORTED: Boolean = false
actual val FFI_SUPPORTED: Boolean = false
actual val FFI_SUPPORTED: Boolean = true
Link copied to clipboard
Link copied to clipboard
actual val FFIPointer?.str: String
expect 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 <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
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
Link copied to clipboard
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
expect fun CreateFFIPointer(ptr: Long): FFIPointer?
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
actual fun CreateFFIPointer(ptr: Long): FFIPointer?
@JvmName(name = "FFIPointerCreation")
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
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
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?
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
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
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
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
Link copied to clipboard
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
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
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
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
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
Link copied to clipboard
fun FFIPointer.getShortArray(size: Int, byteOffset: Int = 0): ShortArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun FFITypedPointer<FFIPointer?>.set(index: Int, value: FFIPointer?)
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)
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)
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)
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)
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)
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)
Link copied to clipboard
fun FFIPointer.setFFIPointer(value: FFIPointer?, byteOffset: Int = 0)
fun Buffer.setFFIPointer(offset: Int, value: FFIPointer?)
Link copied to clipboard
Link copied to clipboard
fun KClassifier.toDenoFFI(ret: Boolean): dynamic
fun KType.toDenoFFI(ret: Boolean): dynamic
Link copied to clipboard
Link copied to clipboard