The DataView
.prototype
property represents the prototype for the DataView
object.
Property attributes of DataView.prototype
| |
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
DataView
instances inherit from DataView.prototype
. As with all constructors, you can change the constructor's prototype object to make changes to all DataView
instances.
DataView.prototype.constructor
DataView
constructor.DataView.prototype.buffer
Read only
ArrayBuffer
referenced by this view. Fixed at construction time and thus read only.
DataView.prototype.byteLength
Read only
ArrayBuffer
. Fixed at construction time and thus read only.
DataView.prototype.byteOffset
Read only
ArrayBuffer
. Fixed at construction time and thus read only.
DataView.prototype.getInt8()
DataView.prototype.getUint8()
DataView.prototype.getInt16()
DataView.prototype.getUint16()
DataView.prototype.getInt32()
DataView.prototype.getUint32()
DataView.prototype.getFloat32()
DataView.prototype.getFloat64()
DataView.prototype.setInt8()
DataView.prototype.setUint8()
DataView.prototype.setInt16()
DataView.prototype.setUint16()
DataView.prototype.setInt32()
DataView.prototype.setUint32()
DataView.prototype.setFloat32()
DataView.prototype.setFloat64()
Specification | Status | Comment |
---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'DataView.prototype' in that specification. | Standard | Initial definition. |
ECMAScript Latest Draft (ECMA-262) The definition of 'DataView.prototype' in that specification. | Living Standard |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 9 | 12 | 15 | 10 | 12.1 | 5.1 |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic support | 4 | Yes | Yes | 15 | 10 | 12 | 4.2 |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/prototype