Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.36 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.36 KB

Overview

Warning: it's extremely unlikely that you should use this package. It's almost always a better idea to write a Flutter plugin.

This package enables Dart developers to use various C APIs by Apple. The package uses dart:ffi and the C APIs are generated with ffi_tool.

Memory management

Until dart:ffi supports finalizers (Dart SDK issue #35770), you need to call reference counting manually (the package provides arcRetain and arcRelease).

Libraries

Important: Core Foundation primitives are "toll-free" compatible with Foundation primitives (NSArray, NSString, etc.). In other words, conversion between Pointer<CFString> and Pointer<NSString> are simple casts.