The Javascript DataView getUint32() method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the DataView.
dataview.getUint32(byteOffset [, littleEndian])
byteOffset
- the offset, in byte, from the start of the view.littleEndian
- Optional, boolean value. If false or undefined, a big-endian value is read. Otherwise, use the little endian.Using the getUint32 method
var buffer = new ArrayBuffer(8); var dataview = new DataView(buffer); let a = dataview.getUint32(1); // 0 console.log(a);//ww w . j a va2 s . co m