operator [] method

int operator [] (
  1. int index
)

The 16-bit two's complement integer at address + 2 * index.

A Dart integer is truncated to 16 bits (as if by .toSigned(16)) before being stored, and the 16-bit value is sign-extended when it is loaded.

The address must be 2-byte aligned.

Implementation

external int operator [](int index);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/Int16Pointer/operator_get.html