Skip to content

dart:ffi remove Pointer.offsetBy #35883

@dcharkes

Description

@dcharkes

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.

Metadata

Metadata

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-ffitype-design

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions