dart:ffi remove Pointer.offsetBy #35883
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-ffi
type-design
Milestone
C++ uses the size of the type when doing pointer arithmetic, we support this with
Pointer.elementAt()
. It only works forPointer<T>
whereT
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.The text was updated successfully, but these errors were encountered: