操作符 + 方法
- @Since('3.3')
- int offset
指向此指针之后 offset 个 Uint16 的指针。
返回指向地址为 offset 倍 Uint16 大小的指针之后的 Uint16 的指针。即 (this + offset).address == this.address + offset * sizeOf<Uint16>()。
同样,(this + offset).value 等价于 this[offset],对于赋值也是类似的。
实现
@Since('3.3')
@pragma("vm:prefer-inline")
Pointer<Uint16> operator +(int offset) =>
Pointer.fromAddress(address + sizeOf<Uint16>() * offset);