operator - method
- @Since('3.3')
- int offset
A pointer to the offset
th Int32
before this one.
Equivalent to this + (-offset)
.
Returns a pointer to the Int32
whose address is
offset
times the size of Int32
before the address of this pointer.
That is, (this - offset).address == this.address - offset * sizeOf<Int32>()
.
Also, (this - offset).value
is equivalent to this[-offset]
,
and similarly for setting,
Implementation
@Since('3.3')
Pointer<Int32> operator -(int offset) =>
Pointer.fromAddress(address - sizeOf<Int32>() * offset);