JavaScript dataView.getBigInt64() method Last Updated : 02 Jan, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report This getBigInt64() method is used to get a signed 64-bit integer (long long) at the particular byte offset from the start of the DataView. Syntax: dataview.getBigInt64(byteOffset, value, littleEndian) Parameters: byteOffset: This parameter specifies the offset, in bytes, from the start of the view to read the data.value: The value which is to be set as bigInt is given herelittleEndian: 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. Return Value: It returns a BigInt value. Thrown Error: If the byteOffset is passed beyond the end of the view then the RangeError is thrown. Below are examples of the dataView.setInt8() Method. Example 1: javascript var buffr = new ArrayBuffer(12); var dataview = new DataView(buffr); console.log(dataview.getBigInt64(0)); Output: 0 Example 2: In this example, the offset passed is 0, so the value printed is 0 because nothing is set. html // Creating buffer with size in byte var buffr = new ArrayBuffer(8); // Creating a view var dataview = new DataView(buffr); console.log(dataview.getBigInt64(0)); Output: 0 Example 3: In this example, the offset passed is 3, so the value printed is 10000 because it is set before. html // create an ArrayBuffer with a size in bytes const buffr = new ArrayBuffer(16); // constant value to set const max = 10000n; const view = new DataView(buffr); view.setBigInt64(3, max); console.log(view.getBigInt64(3)); Output: 10000 We have a complete list of Javascript Date Objects, to check those please go through this JavaScript dataView Complete Reference article. Supported Browsers: Google Chrome 9 and aboveEdge 12 and aboveFirefox 15 and aboveInternet Explorer 10 and aboveOpera 12.1 and aboveSafari 5.1 and above We have a Cheat Sheet on Javascript where we covered all the important topics of Javascript to check those please go through Javascript Cheat Sheet-A Basic guide to JavaScript. Comment More infoAdvertise with us Next Article JavaScript dataView.getBigInt64() method P PranchalKatiyar Follow Improve Article Tags : JavaScript Web Technologies javascript-dataView JavaScript-Methods Similar Reads JavaScript DataView.getBigUint64() Method The getBigUint64() method is used to get an unsigned 64-bit integer (unsigned long long) at the particular byte offset from the start of the DataView. Syntax: dataview.getBigUint64(byteOffset [, littleEndian]) Parameters: This method accepts two parameters as mentioned above and described below: byt 2 min read JavaScript dataView.getInt16() Method The Javascript dataView.getInt16() is an inbuilt function in dataView that is used to get a 16-bit integer at the specified location i.e, at byte offset from the start of the dataView. The range of 16-bit integer values is from 0 and 65,535 for unsigned and from ?32,768 to 32,767 for signed integer 2 min read JavaScript dataView.getUint16() Method The dataView.getUint16() is an inbuilt function in dataView that is used to get an unsigned 16-bit integer at the specified location i.e, at byte offset from the start of the dataView. Syntax: dataView.getUint16(byteOffset) Parameters: It has the parameter byteOffset which is offset in a byte and it 2 min read JavaScript dataView.getInt8() Method The dataView.getInt8() is a method in dataView which is used to get an 8-bit integer in the byte at the specified location from the start of the dataView. Syntax: dataview.getInt8(byteOffset) Parameters: It has the parameter byteOffset which is offset in a byte and it says from the start of the view 2 min read JavaScript dataView.getInt32() Method The dataView.getInt32() is an inbuilt function in dataView that is used to get a 32-bit integer at the specified location i.e, at byte offset from the start of the dataView. The range of 32-bit integer value is from 0 to 4,294,967,295 for unsigned and from 2,147,483,648 to 2,147,483,647 for the sign 2 min read Like