operator []= method

void operator []=(
  1. int i,
  2. HashPixel value
)

Implementation

operator []=(int i, HashPixel value) {
  final baseIndex = i * 4;

  hashList[baseIndex] = value.r;
  hashList[baseIndex + 1] = value.g;
  hashList[baseIndex + 2] = value.b;
  hashList[baseIndex + 3] = value.a;
}