字符串至字节数组转换函数
- 更新时间2026-07-27
- 阅读时长1分钟
使字符串转换为不带符号字节的数组。
数组中的每个字节都是字符串中相应字符的 ASCII 或 UTF-8 值。

输入/输出
字符串
—
字符串是函数转换的输入字符串。
无符号字节数组
—
无符号字节数组是输出数组。 数组的第一个字节为string中第一个字符的 ASCII 或 UTF-8 值,第二个字节为第二个字符的值,依此类推。 |
ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.