operator - method

  1. @Since('3.3')
Pointer<Float> operator -(
  1. int offset
)

A pointer to the offsetth Float before this one.

Equivalent to this + (-offset).

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

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

Implementation

@Since('3.3')
Pointer<Float> operator -(int offset) =>
    Pointer.fromAddress(address - sizeOf<Float>() * offset);