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.
Compatibility
- 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
MDN docs
Specifications
BCD data
- javascript.builtins.ArrayBuffer.ArrayBuffer.maxByteLength_option
- javascript.builtins.ArrayBuffer.maxByteLength
- javascript.builtins.ArrayBuffer.resizable
- javascript.builtins.ArrayBuffer.resize
- javascript.builtins.SharedArrayBuffer.SharedArrayBuffer.maxByteLength_option
- javascript.builtins.SharedArrayBuffer.grow
- javascript.builtins.SharedArrayBuffer.growable
- javascript.builtins.SharedArrayBuffer.maxByteLength