JavaScript dataView.setBigInt64() Method Last Updated : 10 Jan, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report This setBigInt64() method in Javascript is used to store a signed 64-bit integer (long long) value at the particular byte offset from the start of the DataView. Syntax: dataview.setBigInt64(byteOffset, val [, littleEndian]) Parameters: This method accepts three parameters. 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 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 does not return anything. Example 1: In this example, the value set is 7 at offset 0. JavaScript <script> var buffr = new ArrayBuffer(8); var dView = new DataView(buffr); dView.setBigInt64(0, 7n); document.write(dView.getBigInt64(0)); </script> Output: 7 Example 2: In this example, the value set is 789 at offset 4. JavaScript <script> // create an ArrayBuffer with a size in bytes const buffr = new ArrayBuffer(16); // constant value to set const val = 789n; const dView = new DataView(buffr); dView.setBigInt64(4, val); document.write(dView.getBigInt64(4)); </script> Output: 789 We have a complete list of Javascript Boolean and Dataview Methods, to check those please go through Javascript Boolean and DataView Complete Reference article. Supported Browsers: ChromeEdgeFirefoxOperaSafari Comment More infoAdvertise with us Next Article JavaScript dataView.setInt16() Method P PranchalKatiyar Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Methods Similar Reads JavaScript DataView.setBigUint64() Method 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. Syntax: dataview.setBigUint64(byteOffset, val [, littleEndian]) Parameters: This method accepts two parameters as mentioned above and describ 2 min read JavaScript dataView.setInt16() Method The dataView.setInt16() is an inbuilt function in dataView that is used to store a signed 16-bit integer at the specified location i.e at byte offset from the start of the dataView. Syntax: dataView.setInt16(byteOffset) Parameters: It has the parameter byteOffset which is offset in a byte and it say 2 min read JavaScript dataView.setInt16() Method The dataView.setInt16() is an inbuilt function in dataView that is used to store a signed 16-bit integer at the specified location i.e at byte offset from the start of the dataView. Syntax: dataView.setInt16(byteOffset) Parameters: It has the parameter byteOffset which is offset in a byte and it say 2 min read JavaScript dataView.setUint16() Method The dataView.setUint16() is an inbuilt function in dataView that is used to store an unsigned 16-bit integer at the specified location i.e, at byte offset from the start of the dataView. Syntax: dataView.setUint16(byteOffset) Parameters: It has the parameter byteOffset which is offset in a byte and 2 min read JavaScript dataView.setUint16() Method The dataView.setUint16() is an inbuilt function in dataView that is used to store an unsigned 16-bit integer at the specified location i.e, at byte offset from the start of the dataView. Syntax: dataView.setUint16(byteOffset) Parameters: It has the parameter byteOffset which is offset in a byte and 2 min read JavaScript dataView.setInt8() Method The dataView.setInt8() is an inbuilt function in dataView that is used to store a signed 8-bit integer at the specified location i.e, at byte offset from the start of the dataView. Syntax: dataView.setInt8(byteOffset) Parameters: It has the parameter byteOffset which is offset in byte i.e from the s 2 min read Like