From bf32d9520c9d1e3c63334f8dfa87c301f314ff7f Mon Sep 17 00:00:00 2001 From: brianc Date: Sat, 1 Jan 2011 11:30:04 -0600 Subject: [PATCH] internally change name from elasticbuffer to writer --- lib/writer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/writer.js b/lib/writer.js index d5cdf16b..48202b2f 100644 --- a/lib/writer.js +++ b/lib/writer.js @@ -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;