You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
wasabia
changed the title
TODO use NativeFinalizer auto free NativeArray pointer when garbage collected
TODO use NativeFinalizer free NativeArray pointer when garbage collected
May 29, 2022
// filename: lib/src/utils/memory.dart/// A generic [NativeFinalizer] to free any pointer by calling the C function/// `free`. It's kind of like a workaround to combat the restriction of/// [NativeFinalizer] (which only accepts a C function, not a Dart/// function).final freenalizer =NativeFinalizer(DynamicLibrary.executable().lookup('free'));
https://api.dart.cn/stable/2.17.0/dart-ffi/NativeFinalizer-class.html
The text was updated successfully, but these errors were encountered: