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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 6a833a38f6a3
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: a241deb19a6f
Choose a head ref
  • 13 commits
  • 19 files changed
  • 1 contributor

Commits on May 14, 2013

  1. benchmark: hash stream

    isaacs committed May 14, 2013
    Copy the full SHA
    201baa2 View commit details
    Browse the repository at this point in the history
  2. lint

    isaacs committed May 14, 2013
    Copy the full SHA
    0b8af89 View commit details
    Browse the repository at this point in the history
  3. stream: don't create unnecessary buffers in Readable

    If there is an encoding, and we do 'stream.push(chunk, enc)', and the
    encoding argument matches the stated encoding, then we're converting from
    a string, to a buffer, and then back to a string.  Of course, this is a
    completely pointless bit of work, so it's best to avoid it when we know
    that we can do so safely.
    isaacs committed May 14, 2013
    Copy the full SHA
    bdb78b9 View commit details
    Browse the repository at this point in the history
  4. stream: Make default encoding configurable

    Pretty much everything assumes strings to be utf-8, but crypto
    traditionally used binary strings, so we need to keep the default
    that way until most users get off of that pattern.
    isaacs committed May 14, 2013
    Copy the full SHA
    d515857 View commit details
    Browse the repository at this point in the history
  5. tools: remove unnecessary cpplint rules

    We don't actually care about header order much, and since we never use
    stl classes, 'string' isn't an issue for node ever.
    isaacs committed May 14, 2013
    Copy the full SHA
    3058f08 View commit details
    Browse the repository at this point in the history
  6. src: Add StringBytes static util class

    Four functions:
    
    - StringBytes::StorageSize()
    - StringBytes::Size()
    - StringBytes::Write()
    - StringBytes::Encode()
    isaacs committed May 14, 2013
    Copy the full SHA
    64fc34b View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    69dac92 View commit details
    Browse the repository at this point in the history
  8. src: use StringBytes for DecodeWrite/DecodeBytes/Encode

    Bonus: this makes node::Encode actually work properly with base64,
    ucs2, hex, etc.
    isaacs committed May 14, 2013
    Copy the full SHA
    4e8cddd View commit details
    Browse the repository at this point in the history
  9. buffer: DRY string encoding using StringBytes

    This also templatizes the Buffer::*Slice functions, and the template
    function probably cannot be safely used outside of Node.  However, it
    also SHOULD not be used outside of Node, so this is arguably a feature
    as well as a caveat.
    isaacs committed May 14, 2013
    Copy the full SHA
    119354f View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    a1eacdf View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    430dc39 View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    c1e8c8d View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    a241deb View commit details
    Browse the repository at this point in the history