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

Create new Buffer(length) zeroed #472

Closed
wants to merge 2 commits into from
Closed

Create new Buffer(length) zeroed #472

wants to merge 2 commits into from

Conversation

xk
Copy link

@xk xk commented Nov 29, 2010

Currently a new Buffer() contains garbage:

new Buffer(5) -> Buffer 0f 82 1e 03 00, with this patch : new Buffer(5) -> Buffer 00 00 00 00 00

@ry
Copy link

ry commented Nov 30, 2010

I don't want the overhead. won't apply.

@kkaefer
Copy link

kkaefer commented Nov 30, 2010

I think this is a valid feature. Maybe we can expose the memset function in another way. So that you can call it from JS without necessarily running it for each Buffer allocation

@kkaefer
Copy link

kkaefer commented Nov 30, 2010

#477

ssuda pushed a commit to ssuda/node that referenced this pull request Mar 13, 2012
* Fix nodejs#472 Adds support for os/cpu fields in package.json (Adam Blackburn)
* Don't use existing pkg if explicit
* Install missing deps, even if they are in bundleDependencies
* bundle node-gyp
* Automatically node-gyp build stuff with a bindings.gyp
* Fix nodejs#2230 Unpack in place. No folder renaming malarky
* Never create un-listable directories
* Fix cases where an optionalDependency fails to build
* Always ignore .wafpickle-7 files
* fix shrinkwrap test
* Fix: bundleDependencies being re-installed unnecessarily
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants