ffi_helper 1.1.0 ffi_helper: ^1.1.0 copied to clipboard
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)
}