Javascript DataView getInt8()

Introduction

The Javascript DataView getInt8() method gets a signed 8-bit integer at the specified byte offset from the DataView.

dataview.getInt8(byteOffset)
  • byteOffset - the offset, in byte, from the start of the view.

Using the getInt8 method

var buffer = new ArrayBuffer(8);
var dataview = new DataView(buffer);
let a = dataview.getInt8(1);
console.log(a);//from w  w w .  ja v a  2 s . c om



PreviousNext

Related