mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
doc: document max new Buffer(size)
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
This commit is contained in:
1 parent
a5778cdf01
commit
4516e6dda4
1 file changed
+3
-1
@@ -62,7 +62,9 @@ It can be constructed in a variety of ways.
|
||||
|
||||
* `size` Number
|
||||
|
||||
Allocates a new buffer of `size` octets.
|
||||
Allocates a new buffer of `size` octets. Note, `size` must be no more than
|
||||
[kMaxLength](smalloc.html#smalloc_smalloc_kmaxlength). Otherwise, a `RangeError`
|
||||
will be thrown here.
|
||||
|
||||
### new Buffer(array)
|
||||
|
||||
|
||||
Reference in new issue
Block a user