, which is also available in the browser.
There is a method in
to create an unsafe buffer
, where the bytes are not pre-initialized to 0. This is much faster to allocate since you don't have to zero out all the entries, and as long as you later fill everything, it is safe.