How to use ArrayBuffers with DataViews in JavaScript
问题 The only real tutorial I have seen for ArrayBuffer is from HTML5Rocks. But I am wondering specifically how to manipulate the individual bytes. For example, this cartoon on ArrayBuffers from Mozilla shows an image of an ArrayBuffer wrapped in a Uint8Array view: It gives the feeling that you can do this with an ArrayBuffer: var x = new ArrayBuffer(10) x[0] = 1 x[1] = 0 ... x[9] = 1 That is, manually setting the bytes. But I haven't seen any documentation on such a feature. Instead, it seems you