The getBigInt64()
method gets a signed 64-bit integer (long long) at the specified byte offset from the start of the DataView
.
dataview.getBigInt64(byteOffset [, littleEndian])
false
or undefined
, a big-endian value is read.A BigInt
.
RangeError
byteOffset
is set such that it would read beyond the end of the view.There is no alignment constraint; multi-byte values may be fetched from any offset.
getBigInt64
methodvar buffer = new ArrayBuffer(8); var dataview = new DataView(buffer); dataview.getBigInt64(0); // 0n
Specification |
---|
ECMAScript (ECMA-262) The definition of 'DataView.prototype.getBigInt64()' in that specification. |
Desktop | ||||||
---|---|---|---|---|---|---|
getBigInt64 |
67 | 79 | 68 | No | 54 | No |
Mobile | ||||||
---|---|---|---|---|---|---|
getBigInt64 |
67 | 67 | 68 | 48 | No | 9.0 |
Server | |
---|---|
getBigInt64 |
10.4.0 |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getBigInt64