operator - method - DoublePointer extension - dart:ffi library (original) (raw)
- @Since('3.3')
- int offset )
A pointer to the offset
th Double before this one.
Equivalent to this + (-offset)
.
Returns a pointer to the Double whose address isoffset
times the size of Double
before the address of this pointer. That is, (this - offset).address == this.address - offset * sizeOf<Double>()
.
Also, (this - offset).value
is equivalent to this[-offset]
, and similarly for setting,
Implementation
@Since('3.3')
@pragma("vm:prefer-inline")
Pointer<Double> operator -(int offset) =>
Pointer.fromAddress(address - sizeOf<Double>() * offset);