Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: document max new Buffer(size)
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
  • Loading branch information
JacksonTian authored and tjfontaine committed Aug 7, 2014
1 parent a5778cd commit 4516e6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4516e6d

Please sign in to comment.