Returns the signed 64-bit BigInt value at the specified byte offset from the start of the view.
getBigInt64(byteOffset, littleEndian?)
byteOffset
The byte offset in the view at which the value should be retrieved.
littleEndian optional
If true, a little-endian value will be read.
If false or undefined, a big-endian value will be read.
A BigInt value.
var buffer = new ArrayBuffer(8)
var view = new DataView(buffer)
view.setBigInt64(0, 72057594037927935n)
view.getBigInt64(0)
72057594037927935n
var buffer = new ArrayBuffer(8)
var view = new DataView(buffer)
view.setBigInt64(0, 18446744073709551615n) // overflows to -1
view.getBigInt64(0)
-1n