operator [] method

Pointer<T> operator [](
  1. int index
)

The pointer at address + size * index.

Implementation

Pointer<T> operator [](int index) => new Pointer<T>.fromAddress(
    is64Bit
        ? viewSingle(index).getUint64(0, Memory.endianess)
        : viewSingle(index).getUint32(0, Memory.endianess),
    boundMemory);