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