Resizable buffers
Newly available since 2024-07-09
The resize()
method of an ArrayBuffer
and the grow()
method of a SharedArrayBuffer
, constructed with the maxByteLength
option, changes the size of the buffer in place.
Learning resources on MDN
Browser support
- Chrome 111 Released on 2023-03-07
- Chrome Android 111 Released on 2023-03-07
- Edge 111 Released on 2023-03-13
- Firefox 128 Released on 2024-07-09
- Firefox for Android 128 Released on 2024-07-09
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
Specifications
- ECMAScript Language Specification (#sec-get-arraybuffer.prototype.resizable), from TC39 (Ecma International).
- ECMAScript Language Specification (#sec-get-sharedarraybuffer.prototype.growable), from TC39 (Ecma International).