ffi_helper 1.1.0 copy "ffi_helper: ^1.1.0" to clipboard
ffi_helper: ^1.1.0 copied to clipboard

discontinued
outdated

Some FFI helper classes

Provides some functionality to make working with the FFI a little easier.

Usage #

import 'package:ffi_helper/ffi_helper.dart';

main() {
  final array = MemoryArray<Uint8, Uint8List>.fromTypedData(someUint8List);
  someFFIfunction(array.rawPtr);

  final cstr = CharArray.fromUtf8String("some String");
  readCstr(cstr.rawPtr); 

  final emptyCstr = CharArray.allocate(count: lengthOfCstr);
  writeToCstr(emptyCstr.rawPtr)
}
2
likes
0
pub points
11%
popularity

Publisher

unverified uploader

Some FFI helper classes

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi

More

Packages that depend on ffi_helper