Uint8Array 拷贝操作的坑(buffer)
Uint8Array 声明let u8a=new Uint8Array(10);console.log(u8a);//Uint8Array(10) [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]console.log(u8a.buffer);//ArrayBuffer{} .bytelength 为10u8a.set([15,16,17],0)console.log(u8a)
原创
2017-05-24 19:36:16 ·
20615 阅读 ·
1 评论