Allocate a new Uint8Array
without zeroing the bytes.
This can be 3.5x faster than new Uint8Array(size)
, but if you send uninitialized memory to your users (even unintentionally), it can potentially leak anything recently in memory.
Generated using TypeDoc
Allocate a new
Uint8Array
without zeroing the bytes.This can be 3.5x faster than
new Uint8Array(size)
, but if you send uninitialized memory to your users (even unintentionally), it can potentially leak anything recently in memory.