操作符 - 方法
- @Since('3.3')
- int offset
一个指针,指向在此之前偏移量为 offset 的 Uint64。
相当于 this + (-offset)。
返回一个指向 Uint64 的指针,其地址为此指针地址前偏移量为 offset 倍的 Uint64 的大小。即 (this - offset).address == this.address - offset * sizeOf<Uint64>()。
此外,(this - offset).value 等同于 this[-offset],设置操作类似。
实现
@Since('3.3')
@pragma("vm:prefer-inline")
Pointer<Uint64> operator -(int offset) =>
Pointer.fromAddress(address - sizeOf<Uint64>() * offset);