This setBigInt64() method is used to store a signed 64-bit integer (long long) value at the particular byte offset from the start of the DataView.
dataview.setBigInt64(byteOffset, val [, littleEndian])
- byteOffset: This parameter specifies the offset, in bytes, from the start of the view to read the data.
- val: This parameter specifies the value to set as a BigInt.
- littleEndian: This is optional parameter. If it is true then indicates if the 64-bit int is stored in little- or big-endian format. If set to false or not-defined, then a big-endian value is read.
This function does not return anything.
Example 1: In this example, the value set is 7 at offset 0.
Example 2: In this example, the value set is 789 at offset 4.