We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Buffer.allocUnsafe
1 parent 86593e5 commit 2d1bc3dCopy full SHA for 2d1bc3d
doc/api/buffer.md
@@ -808,8 +808,8 @@ A `TypeError` will be thrown if `size` is not a number.
808
The `Buffer` module pre-allocates an internal `Buffer` instance of
809
size [`Buffer.poolSize`][] that is used as a pool for the fast allocation of new
810
`Buffer` instances created using [`Buffer.allocUnsafe()`][], [`Buffer.from(array)`][],
811
-and [`Buffer.concat()`][] only when `size` is less than or equal to
812
-`Buffer.poolSize >> 1` (floor of [`Buffer.poolSize`][] divided by two).
+and [`Buffer.concat()`][] only when `size` is less than
+`Buffer.poolSize >>> 1` (floor of [`Buffer.poolSize`][] divided by two).
813
814
Use of this pre-allocated internal memory pool is a key difference between
815
calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
0 commit comments