The Javascript DataView getBigUint64() method gets an unsigned 64-bit integer at the specified byte offset from the DataView.
It returns a BigInt.
dataview.getBigUint64(byteOffset [, littleEndian])
byteOffset
- the offset in bytes from the start of the view.littleEndian
- Optional, indicates whether the 64-bit int is stored in little- or big-endian format. If false or undefined, a big-endian value is read.Using the getBigUint64 method
var buffer = new ArrayBuffer(8); var dataview = new DataView(buffer); let a = dataview.getBigUint64(0); console.log(a);/*from ww w. j a va2s.c o m*/