toInt32x4List method

Int32x4List toInt32x4List()

Implementation

Int32x4List toInt32x4List() {
  var length = this.length;
  var size = length ~/ 4;
  if (size * 4 < length) ++size;

  var list = List.generate(size, (i) {
    var j = i * 4;
    var x = this[j];
    var y = this[++j];
    var z = this[++j];
    var w = this[++j];
    return Int32x4(x, y, z, w);
  });

  return Int32x4List.fromList(list);
}