Emulate the node.js buffer api using HTML5 dataviews.