operator - method - PointerPointer extension - dart:ffi library (original) (raw)

description

Pointer<Pointer<T>> operator -(

  1. int offset )

A pointer to the offsetth Pointer before this one.

Equivalent to this + (-offset).

Returns a pointer to the Pointer whose address isoffset times the size of Pointer<T> before the address of this pointer. That is, (this - offset).address == this.address - offset * sizeOf<Pointer<T>>().

Also, (this - offset).value is equivalent to this[-offset], and similarly for setting,

Implementation

external Pointer<Pointer<T>> operator -(int offset);