asciiStringToByteArray function

List<int> asciiStringToByteArray(
  1. String text
)

Implementation

List<int> asciiStringToByteArray(String text) {
  return text.codeUnits; // 将字符串转换为 ASCII 字符的字节数组
}