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 remove Pointer.offsetBy #35883

Open
dcharkes opened this Issue Feb 7, 2019 · 0 comments

Comments

1 participant
@dcharkes
Copy link
Contributor

dcharkes commented Feb 7, 2019

C++ uses the size of the type when doing pointer arithmetic, we support this with Pointer.elementAt(). It only works for Pointer<T> where T has a size. This is the preferred way of using an array of elements.

Pointer.offsetBy() enables taking arbitrary offsets (in bytes) on any Pointer. This is not the preferred way, possibly we can leave it out completely.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment