String To Byte Array Function
- 已更新2025-07-30
- 閱讀時間為 1 分鐘
Converts a string into an array of unsigned bytes.
Each byte in the array has the ASCII value of the corresponding character in the string.

Inputs/Outputs
string
—
string is the input string the function converts.
unsigned byte array
—
unsigned byte array is the output array. The first byte in the array has the ASCII value of the first character in string, the second byte has the second value, and so on. |
string
—
unsigned byte array
—