mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: update Buffer(size) documentation
It returns zero-filled memory since v8.0.0. PR-URL: https://github.com/nodejs/node/pull/33198 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
committed by
Anna Henningsen
parent
f153081d26
commit
dbad1b6515
@@ -2529,9 +2529,7 @@ changes:
|
||||
* `size` {integer} The desired length of the new `Buffer`.
|
||||
|
||||
See [`Buffer.alloc()`][] and [`Buffer.allocUnsafe()`][]. This variant of the
|
||||
constructor is equivalent to [`Buffer.allocUnsafe()`][], although using
|
||||
[`Buffer.alloc()`][] is recommended in code paths that are not critical to
|
||||
performance.
|
||||
constructor is equivalent to [`Buffer.alloc()`][].
|
||||
|
||||
### `new Buffer(string[, encoding])`
|
||||
<!-- YAML
|
||||
|
||||
Reference in New Issue
Block a user