Friday, March 08, 2013

New Tricks in XMLHttpRequest2 - HTML5 Rocks

New Tricks in XMLHttpRequest2 - HTML5 Rocks: "An ArrayBuffer is a generic fixed-length container for binary data. They are super handy if you need a generalized buffer of raw data, but the real power behind these guys is that you can create "views" of the underlying data using JavaScript typed arrays. In fact, multiple views can be created from a single ArrayBuffer source. For example, you could create an 8-bit integer array that shares the same ArrayBuffer as an existing 32-bit integer array from the same data. The underlying data remains the same, we just create different representations of it.

"

'via Blog this'