SharedArrayBuffer.prototype.byteLength
The byteLength
accessor property represents the length of an SharedArrayBuffer
in bytes.
Description
The byteLength
property is an accessor property whose set accessor function is undefined
, meaning that you can only read this property. The value is established when the shared array is constructed and cannot be changed.
Examples
Using byteLength
var sab = new SharedArrayBuffer(1024);
sab.byteLength; // 1024
Specifications
Specification |
---|
ECMAScript Language Specification # sec-get-sharedarraybuffer.prototype.bytelength |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
byteLength | ChromeFull support68 | EdgeFull support79 | FirefoxFull support79 | Internet ExplorerNo supportNo | OperaNo supportNo | SafariFull support15.2 | WebView AndroidNo support60 – 63 | Chrome AndroidFull support89 | Firefox for AndroidFull support79 | Opera AndroidNo supportNo | Safari on iOSFull support15.2 | Samsung InternetFull support15.0 | DenoFull support1.0 | Node.jsFull support8.10.0 |
Legend
- Full support
- Full support
- No support
- No support
- See implementation notes.
- User must explicitly enable this feature.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.