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;