function BufStream() {
    this.bufs = [];
}

BufStream.prototype.write = function(buf) {
    if (typeof(buf) === 'string') {
        buf = new Buffer(buf);
    }
    this.bufs.push(buf);
};

BufStream.prototype.toString = function() {
    var buf = this.buffer();
    return buf.toString.apply(buf, arguments);
}

BufStream.prototype.buffer = function() {
    switch (this.bufs.length) {
        case 0:
            return new Buffer(0);
        case 1:
            return this.bufs[0];
        default:
            break;
    }
    var len = this.bufs.reduce(function(prev,cur) {
        return prev + cur.length;
    }, 0);
    var buf = new Buffer(len);
    this.bufs.reduce(function(prev,cur) {
        cur.copy(buf, prev);
        return prev + cur.length;
    }, 0);
    return buf;
};

module.exports = BufStream;

@@ -787,16 +787,393 @@
 uf;%0A%7D;%0A%0A
+// cb(er, flatbuf)%0ABufStream.prototype.readStream = function(s, cb) %7B%0A    var that = this;%0A    s.on('data', function(chunk) %7B%0A        that.write(chunk);%0A    %7D);%0A    s.on('error', function(er) %7B%0A        if (cb) %7B%0A            cb.call(that, er);%0A        %7D%0A    %7D);%0A    s.on('end', function() %7B%0A        if (cb) %7B%0A            cb.call(that, null, that.buffer());%0A        %7D%0A    %7D);%0A%7D%0A%0A
 module.e

Add readStream capability to bstream. I wonder if this should be pulled out as a separate project?