title: How to store a 32-bit integer in an arraybuffer?
body: <p>I seem to not be understanding the <code>Uint32Array</code>. According to what I've read about the <code>Uint8Array</code> I could just feed it a number inside an array (<code>Uint8Array([16])</code> or <code>Uint8Array([96,56])</code>) and the results are exactly that. However, when I try the same thing for a larger number like <code>Uint32Array([21640])</code>, it seems to truncate it. Where 21640 should equal 5488 in hex, I only get 88. How does this actually work?</p>
  
  <p><strong>Edit: Elaborations</strong></p>
  
  <p>I am also attempting to concatenate several ArrayBuffers together. If I'm not mistaken <code>readAsArrayBuffer</code> produces an <code>Uint8Array</code>, and I am trying to append to that some 32-bit numbers using <a href="https://gist.github.com/72lions/4528834" rel="nofollow noreferrer">https://gist.github.com/72lions/4528834</a></p>
  
  <p>There is so much information and examples on <code>Uint8Array</code> and what little there was on <code>Uint32Array</code> makes me think that one of these 32 would store a value as if it was 4 of the 8.</p>