0.45+9.2.0.4
1 Overview
The ffi library supports directly calling C functions from Rhombus. To set up those calls, the C function must be described on the Rhombus side, including the types for its arguments and results that imply conversions between Rhombus and C values. In principle, descriptions of C functions could be extracted from header files, but most C bindings for Rhombus are written independent of header files. This section steps you through the process with an extended example.
The running tutorial in this section is based on the original FFI tutorial series written by Asumu Takikawa.