ffi_tool 0.2.5 copy "ffi_tool: ^0.2.5" to clipboard
ffi_tool: ^0.2.5 copied to clipboard

discontinued

A tool for generating 'dart:ffi' bindings for C and Objective-C libraries.

example/example.dart

import 'package:ffi_tool/c.dart';
import 'dart:io';

void main() {
  generateFile(File('generated.dart'), library);
}

final library = Library(
  dynamicLibraryPath: 'path/to/library',
  elements: [
    // A function
    Func(
      name: 'Example',
      parameterTypes: ['int32', 'float64', '*void'],
      returnType: 'void',
    ),

    // A global
    Global(
      name: 'ExampleGlobal',
      type: 'int32',
    ),
  ],
);
9
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A tool for generating 'dart:ffi' bindings for C and Objective-C libraries.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

meta

More

Packages that depend on ffi_tool