From 222fbffcfd6f22c33500f59132d72f97bc69a90c Mon Sep 17 00:00:00 2001 From: brianc Date: Sat, 1 Jan 2011 11:33:50 -0600 Subject: [PATCH] writer#clear method --- lib/writer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/writer.js b/lib/writer.js index 48202b2f..34c779c6 100644 --- a/lib/writer.js +++ b/lib/writer.js @@ -71,4 +71,8 @@ p.add = function(otherBuffer) { return this; } +p.clear = function() { + this.offset=0; +} + module.exports = Writer;