operator + method - Int64Pointer extension - dart:ffi library (original) (raw)

  1. @Since('3.3')

Pointer<Int64> operator +(

  1. int offset )

A pointer to the offsetth Int64 after this one.

Returns a pointer to the Int64 whose address isoffset times the size of Int64 after the address of this pointer. That is (this + offset).address == this.address + offset * sizeOf<Int64>().

Also (this + offset).value is equivalent to this[offset], and similarly for setting.

Implementation

@Since('3.3')
@pragma("vm:prefer-inline")
Pointer<Int64> operator +(int offset) =>
    Pointer.fromAddress(address + sizeOf<Int64>() * offset);