将 UTF-8 字符串或 BufferSource 转换为字节字符串。
需要转换的字符串或 BufferSource。
转换后的字节字符串。
const byteStr = toByteString('你好');// 返回 UTF-8 编码后的字节字符串 Copy
const byteStr = toByteString('你好');// 返回 UTF-8 编码后的字节字符串
将 UTF-8 字符串或 BufferSource 转换为字节字符串。