New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dart:ffi DynamicLibrary extends Pointer<Void> #35881

Open
dcharkes opened this Issue Feb 7, 2019 · 1 comment

Comments

1 participant
@dcharkes
Copy link
Contributor

dcharkes commented Feb 7, 2019

DynamicLibarary is currently completely separate from Pointer. This prevents us to pass a handle to a dynamic library to C++ from Dart, and it introduces some code duplication in the VM.

We can make DynamicLibrary extends Pointer<Void>.

It would be best if this would be a non-indexable and non-storeable pointer: #35841

@dcharkes dcharkes added this to To do in Dart VM FFI via automation Feb 7, 2019

@dcharkes dcharkes referenced this issue Feb 7, 2019

Open

dart:ffi resolve outstanding design decisions #35764

1 of 11 tasks complete
@dcharkes

This comment has been minimized.

Copy link
Contributor Author

dcharkes commented Feb 7, 2019

If there is a good reason for not merging the two, then we should expose DynamicLibrary.handle to enable users passing library handles to C functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment