Commits on Apr 4, 2017
  1. Re-publish because of npm brain damage.

    bnoordhuis committed Apr 4, 2017
    It looks like `npm publish` when `ignore-scripts=true` is set in .npmrc
    creates a package that doesn't invoke `node-gyp rebuild` when installed;
    the `scripts` property in the generated package.json is empty where it
    normally inserts an auto-generated `{"install":"node-gyp rebuild"}`
    Fixes: #88
  2. Don't swallow module mismatch exceptions.

    bnoordhuis committed Apr 4, 2017
    Only try the debug build when the release build failed to load with
    a MODULE_NOT_FOUND exception, otherwise we swallow module version
    mismatch exceptions.
Commits on Apr 29, 2016
Commits on Feb 15, 2016
  1. src: use signed char for negative values

    skogsmaskin committed with bnoordhuis Feb 13, 2016
    PR-URL: #76
    Reviewed-By: Ben Noordhuis <>
Commits on Jul 1, 2015
  1. src: make compatible with io.js v3.0.0

    bnoordhuis committed Jul 1, 2015
    Apply a small fix to work around the fact that `node::Buffer::New()`
    returns a `v8::MaybeLocal<v8::Object>` now.
  2. build: remove wscript

    bnoordhuis committed Jul 1, 2015
    WAF was deprecated and removed years ago.  Remove the unused wscript.
Commits on Mar 31, 2014
  1. src: emulate snprintf() on windows

    bnoordhuis committed Mar 31, 2014
    snprintf() is a c99-ism and that's something msvc supports only
    sparingly.  Fixes a Windows-only build error that was introduced
    in commit 559ca71.
    Fixes #58.
Commits on Mar 23, 2014
  1. src: fix NULL pointer dereference

    bnoordhuis committed Mar 23, 2014
    buffertools#reverse() made the (somewhat unwise) assumption that the
    return value from node::Buffer::Data() is never NULL.  As of commit
    nodejs/node-v0.x-archive@e501ce4 that assumption is no longer true.
    Fixes #57.
Commits on Mar 19, 2014
  1. Make compatible with v0.11

    bnoordhuis committed Mar 19, 2014
    Use a smidgen of macro magic to abstract away the differences between
    node.js v0.10 and v0.11.  In particular, abstract the differences
    between V8 3.14 and 3.24.
    Note that this commit targets the current HEAD of node.js master, it's
    not compatible with the most recent v0.11 release, v0.11.12.
    Fixes #56.
  2. Replace tabs with two spaces

    bnoordhuis committed Mar 19, 2014
  3. Add `npm test` target

    bnoordhuis committed Mar 19, 2014
    Nothing special, it just executes `node test.js`.
Commits on Feb 18, 2014
  1. Use debug add-on if release add-on is unavailable.

    bnoordhuis committed Feb 18, 2014
    Try to load the release build first before trying the debug build.
    Fixes add-on loading for people that have npm_config_debug set in
    their environment or use a debug build of node.
    Fixes #36.
Commits on Jan 17, 2014
  1. Include <algorithm>, find VS2013 breakage.

    bnoordhuis committed Jan 17, 2014
    Before this commit, buffertools didn't compile with VS2013 because
    it relied on std::min() being pulled in implicitly through other
    standard headers.  The fix is easy, just include <algorithm>.
    Fixes #52.
Commits on Dec 19, 2013
  1. Don't extend Buffer prototype by default.

    bnoordhuis committed Dec 19, 2013
    Make extension of Buffer.prototype opt-in.  The rationale for that is
    that some of the buffertools methods conflict with the Buffer methods
    of the same name.  Users now have to call `buffertools.extend()` if
    they want the old behavior.
    Bump the version number to 2.0.0 because this is a breaking change to
    the API.
  2. Don't leak globals in test.js

    bnoordhuis committed Dec 19, 2013
  3. Remove XOR swap from Reverse().

    bnoordhuis committed Dec 19, 2013
    gcc 4.8 on x86_64 produces better code for the naive approach than it
    does for the XOR swap trick.
Commits on Apr 25, 2013
  1. Add LICENSE

    bnoordhuis committed Apr 25, 2013
  2. Update AUTHORS

    bnoordhuis committed Apr 25, 2013
Commits on Jun 23, 2012
Commits on May 11, 2012
  1. doc: fix wording

    bnoordhuis committed May 11, 2012
Commits on Apr 16, 2012
Commits on Apr 13, 2012
  1. build: fix build with node v0.4

    schloerke committed with bnoordhuis Apr 12, 2012
    Fixed build directory for node.js@0.4.X. This will now match the build dir of
    the node.js@0.6.X binding.gyp output
Commits on Apr 10, 2012
  1. package: remove the "preinstall" phase

    TooTallNate committed with bnoordhuis Mar 19, 2012
    npm does this for us; it'll compile using the wscript file and node-waf
    on older npm versions, or using node-gyp and the binding.gyp file on newer
    versions of npm.
  2. gyp: add a binding.gyp file

    TooTallNate committed with bnoordhuis Mar 19, 2012
    For use with node-gyp.
Commits on Feb 6, 2012