String To Byte Array Function
- Updated2026-06-02
- 1 minute(s) read
Converts a string into an array of unsigned bytes.
Each byte in the array has the ASCII or UTF-8 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 or UTF-8 value of the first character in string, the second byte has the second value, and so on. |
string
—
unsigned byte array
—