Why do Uint8Array and Uint32Array have different binary representations when I look at their elements?

前端 未结 0 1808
死守一世寂寞
死守一世寂寞 2020-11-22 07:28

I have the following code:

const uint8 = new Uint8Array(buffer);

let uint8String = "";
for (const n of uint8) uint8String += n.toString(2).padStart         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题