Appearance
AbiSpecificIntegerPointer<T extends AbiSpecificInteger>
extension AbiSpecificIntegerPointer<T extends AbiSpecificInteger> on Pointer<T>Annotations: @Since.new('2.16')
Extension on Pointer specialized for the type argument AbiSpecificInteger.
Properties
value extension read / write
int get valueThe integer at address.
Available on Pointer<T extends NativeType>, provided by the AbiSpecificIntegerPointer<T extends AbiSpecificInteger> extension
Implementation
dart
external int get value;
external void set value(int value);Methods
deprecated elementAt() extension
DEPRECATED
Use operator + instead
Pointer arithmetic (takes element size into account).
Available on Pointer<T extends NativeType>, provided by the AbiSpecificIntegerPointer<T extends AbiSpecificInteger> extension
Implementation
dart
@Deprecated('Use operator + instead')
external Pointer<T> elementAt(int index);Operators
operator +() extension
A pointer to the offsetth T after this one.
Returns a pointer to the T whose address is offset times the size of T after the address of this pointer. That is (this + offset).address == this.address + offset * sizeOf<T>().
Also (this + offset).value is equivalent to this[offset], and similarly for setting.
Available on Pointer<T extends NativeType>, provided by the AbiSpecificIntegerPointer<T extends AbiSpecificInteger> extension
Implementation
dart
external Pointer<T> operator +(int offset);operator -() extension
A pointer to the offsetth T before this one.
Equivalent to this + (-offset).
Returns a pointer to the T whose address is offset times the size of T before the address of this pointer. That is, (this - offset).address == this.address - offset * sizeOf<T>().
Also, (this - offset).value is equivalent to this[-offset], and similarly for setting,
Available on Pointer<T extends NativeType>, provided by the AbiSpecificIntegerPointer<T extends AbiSpecificInteger> extension
Implementation
dart
external Pointer<T> operator -(int offset);operator extension
The integer at address + sizeOf<T>() * index.
Available on Pointer<T extends NativeType>, provided by the AbiSpecificIntegerPointer<T extends AbiSpecificInteger> extension
Implementation
dart
external int operator [](int index);operator []=() extension
The integer at address + sizeOf<T>() * index.
Available on Pointer<T extends NativeType>, provided by the AbiSpecificIntegerPointer<T extends AbiSpecificInteger> extension
Implementation
dart
external void operator []=(int index, int value);