字符串转ArrayBuffer
const arrayBuffer= new ArrayBuffer(str.length)
const bufferView = new Uint8Array(ab)
for (let i = 0; i < str.length; i++) {
bufferView[i] = str.charCodeAt(i)
}
原文地址:https://blog.csdn.net/weixin_46041137/article/details/139179661
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!