utf8ToList property

List<int> get utf8ToList

utf8ToList

Implementation

List<int> get utf8ToList {
  final List<int> words = length.generate((_) => 0);
  for (int i = 0; i < length; i++) {
    words[i >> 2] |= (codeUnitAt(i) & 0xff).toSigned(32) <<
        (24 - (i % 4) * 8).toSigned(32);
  }
  return words;
}