Open Bnaya opened 3 years ago
Any update on this? ArrayBuffer now has .resize()
in most major browsers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize
I will take a look, but i'm not sure when i will get to it. Would you like to try and make a PR?
There's a proposal to make [shared]arraybuffer resizeable in place, which is great for us https://github.com/tc39/proposal-resizablearraybuffer It's expected to be supported quite fast in all of the platforms that supports SharedArrayBuffer, so we probably can make it as a requirement for the library, with A configurable out of memory strategy.