getUnsafe method

  1. @override
  2. @unsafeNoBoundsChecks
Float32x4 getUnsafe(
  1. Pos pos
)
inherited

Returns the pixel at the given position without bounds checking.

If outside the bounds of the buffer, the behavior is undefined.

Implementation

@override
@unsafeNoBoundsChecks
T getUnsafe(Pos pos) => data[_indexAtUnsafe(pos)];