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