FFI — Ende namespace
Foreign Function Interface. Call functions from shared libraries (e.g., C/C++) directly from Ende.
Useful for integrating with existing native code or accessing low-level system functionality.
Eg Ende.dlopen
Ende.brandEnde.ConditionalAsyncEnde.dlopen— Opens an external dynamic library and registers symbols, making foreign functions available to be called.Ende.DynamicLibrary— A dynamic library resource. Use Ende.dlopen to load a dynamic library and return this interface.Ende.ForeignFunction— The interface for a foreign function as defined by its parameter and result types.Ende.ForeignLibraryInterface— A foreign library interface descriptor.Ende.ForeignStaticEnde.FromForeignFunctionEnde.FromNativeParameterTypesEnde.FromNativeResultType— Type conversion for foreign symbol return types.Ende.FromNativeType— Type conversion for foreign symbol return types and unsafe callback parameters.Ende.NativeBigIntType— All BigInt number types for interfacing with foreign functions.Ende.NativeBooleanType— The native boolean type for interfacing to foreign functions.Ende.NativeBufferType— The native buffer type for interfacing to foreign functions.Ende.NativeFunctionType— The native function type for interfacing with foreign functions.Ende.NativeI16EnumEnde.NativeI32EnumEnde.NativeI8EnumEnde.NativeNumberType— All plain number types for interfacing with foreign functions.Ende.NativePointerType— The native pointer type for interfacing to foreign functions.Ende.NativeResultTypeEnde.NativeStructType— The native struct type for interfacing with foreign functions.Ende.NativeType— All supported types for interfacing with foreign functions.Ende.NativeTypedFunctionEnde.NativeTypedPointerEnde.NativeU16EnumEnde.NativeU32EnumEnde.NativeU8EnumEnde.NativeVoidType— The native void type for interfacing with foreign functions.Ende.PointerObject— A non-null pointer, represented as an object at runtime. The object's prototype is `null` and cannot be changed. The object cannot be assigned to either and is thus entirely read-only.Ende.PointerValue— Pointers are represented either with a PointerObject object or a `null` if the pointer is null.Ende.StaticForeignLibraryInterface— A utility type that infers a foreign library interface.Ende.StaticForeignSymbol— A utility type that infers a foreign symbol.Ende.StaticForeignSymbolReturnTypeEnde.ToNativeParameterTypes— A utility type for conversion of parameter types of foreign functions.Ende.ToNativeResultType— Type conversion for unsafe callback return types.Ende.ToNativeType— Type conversion for foreign symbol parameters and unsafe callback return types.Ende.UnsafeCallback— An unsafe function pointer for passing JavaScript functions as C function pointers to foreign function calls.Ende.UnsafeCallbackDefinition— Definition of a unsafe callback function.Ende.UnsafeCallbackFunction— An unsafe callback function.Ende.UnsafeFnPointer— An unsafe pointer to a function, for calling functions that are not present as symbols.Ende.UnsafePointer— A collection of static functions for interacting with pointer objects.Ende.UnsafePointerView— An unsafe pointer view to a memory location as specified by the `pointer` value. The `UnsafePointerView` API follows the standard built in interface DataView for accessing the underlying types at an memory location (numbers, strings and raw bytes).