cjblomqvist/base64Stream — pull request #2 by NeoPhi (2013-03-25 21:46:31+00:00)
Title: Correct odd byte handling bug

When running the code below a `start out of bounds` error will be generated because the chunk is updated before the oddBytes are pulled off. This pull request fixes this issue.

```
var base64Stream = require('base64Stream');
var bufferedStreamToBase64 = new base64Stream.BufferedStreamToBase64();
bufferedStreamToBase64.write(new Buffer('12'));
```