tree: d54ac0c1b191e64fd0ff313bc6faf13eb38e7b08 [path history] [tgz]
  1. headers/
  2. .gitignore
  3. config.yaml
  4. generated_bindings.dart
  5. pubspec.yaml
  6. README.md
example/ffinative/README.md

FfiNatives example

A simple example generating FfiNative bindings for a very small header file (headers/example.h).

Generating bindings

At the root of this example (example/simple), run -

dart run ffigen --config config.yaml

This will generate bindings in a file: generated_bindings.dart.