To DataView
Create a DataView
over an ArrayBuffer
/8-bit typed array (commonly used in the browsers) or a Buffer
(commonly used in Node.js).
Supported inputs:
Installation
npm install --save to-data-view
Usage
const toDataView = require('to-data-view')
function awesomeParser (source) {
const view = toDataView(source)
}
API
toDataView(data: ArrayBuffer | Buffer | Int8Array | Uint8Array | Uint8ClampedArray): DataView
Return a DataView
instance that uses the same memory as the provided ArrayBuffer
, 8-bit typed array or Buffer
.