This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
new Buffer() can contain any content #7230
Comments
@phedny this is correct, would you mind submitting a Pull Request that would fix a documentation? |
PR submitted. Closing this here. |
jasnell
pushed a commit
to jasnell/node-joyent
that referenced
this issue
Jun 29, 2015
fixes nodejs#7230 Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: nodejs#25565
jasnell
added a commit
to jasnell/node
that referenced
this issue
Aug 4, 2015
per: nodejs/node-v0.x-archive@53b6a61 fixes nodejs/node-v0.x-archive#7230 Original commit patch did not apply cleanly Originally contributed by @sarathms
jBarz
pushed a commit
to ibmruntimes/node
that referenced
this issue
Nov 4, 2016
fixes nodejs#7230 Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: nodejs#25591
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When creating a new Buffer using "new Buffer(size)", the buffer can contain any data. I was assuming the buffer to contain just zeroes, but this assumption is not correct.
If this is behaviour is intended, e.g. because of performance concerns, please update the documentation to reflect the fact that the returned buffer may contain random values.
The text was updated successfully, but these errors were encountered: