internally change name from elasticbuffer to writer

This commit is contained in:
brianc 2011-01-01 11:30:04 -06:00
parent 0458e8981f
commit bf32d9520c

View File

@ -1,10 +1,10 @@
var ElasticBuffer = function(size) {
var Writer = function(size) {
this.size = size || 1024;
this.buffer = new Buffer(this.size);
this.offset = 0;
};
var p = ElasticBuffer.prototype;
var p = Writer.prototype;
p._remaining = function() {
return this.buffer.length - this.offset;
@ -71,4 +71,4 @@ p.add = function(otherBuffer) {
return this;
}
module.exports = ElasticBuffer;
module.exports = Writer;