The setBigUint64() method is used to store an unsigned 64-bit integer (unsigned long long) value at the particular byte offset from the start of the DataView.
dataview.setBigUint64(byteOffset, val [, littleEndian])
Parameters: This method accept two parameters as mentioned above and described below:
- 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 BigUInt.
- littleEndian: It is an 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.
Return Value: This function returns undefined.
Example 1: In this example, the value set is 1234 at offset 0.
Example 2: In this example, the value set is 12345678 at offset 6.