Foreign Function Interface
The foreign function interface (FFI) lets Rux call functions defined outside the language — typically in C / C++ libraries — and exchange data with them. Each part of the FFI has a dedicated chapter:
| Topic | Description |
|---|---|
extern Declarations | Declaring functions defined outside Rux |
| Import Attribute | Linking declarations to a dynamic library |
Pointers are central to passing memory across the boundary — see Pointers and extern.
See Also
- Pointers and
extern— exchanging memory with native code @[Import]— the attribute that names the library@[Target]— platform-specificexterndeclarations