operator + method - StructPointer extension - dart:ffi library (original) (raw)
Pointer<T> operator +(
- int offset )
A pointer to the offset
th T
after this one.
Returns a pointer to the T
whose address isoffset
times the size of T
after the address of this pointer. That is (this + offset).address == this.address + offset * sizeOf<T>()
.
Also (this + offset).value
is equivalent to this[offset]
, and similarly for setting.
Implementation
external Pointer<T> operator +(int offset);