~/talk

C interoperability with Dart FFI

Talkat Google I/O 2021 · 2021-05-18..05-20· [flutter, security]
slides:none on file

Shows how to call C from Dart by following the three explicit steps: open the dynamic library, look up the symbol, call it, and handle C memory. Demonstrates automatic binding generation with FFI GEN, wraps the generated C API for SQLite in an idiomatic database class, and wires that to a Flutter Veggies app search page so queries run against a real SQLite DB and the search works.

AI-written summary · about

  1. 0:00Intro
  2. 1:47Call C function from Dart
  3. 5:00Manage C memory
  4. 5:33C features
  5. 5:59Sample app
  6. 6:38Database
  7. 7:15FFIGen
  8. 8:14Dart API
  9. 8:55idiomatic Dart API
  10. 10:54Demo code
  11. 11:24Recap
  12. 11:53What is Dart FFI
  13. 12:41Using Dart FFI
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.