textEncoder function

Uint8List textEncoder(
  1. String value
)

Implementation

Uint8List textEncoder(String value) {
  final u8a = Uint8List(value.length);
  for (int i = 0; i < value.length; i++) {
    u8a[i] = value.codeUnitAt(i);
  }
  return u8a;
}