Examples

  • Add: Simple end-to-end example from FFIgen's README.md that shows how FFIgen can be used to call a custom C API from a Dart app.
  • package:code_assets examples: Various end-to-end examples showcasing how FFIgen can be used in real world scenarios.
  • Simple: Very simple example that generates bindigns for a very small header file.
  • cJSON: Demonstrates generation of bindings for a C library (cJson).
  • LibClang: Demonstrates generating bindings for Libclang.
  • ObjectiveC: Showcases how to generate bindings for an Objective-C library.
  • Swift: Demonstrates how to use FFIgen to interact with Swift libraries.
  • FFINative: Example for generating Native bindings for a very small header file.
  • SharedBindings: Showcases how bindings can share types with other bindings.