docs: function(opts) {
    EventEmitter.call(this);
  
    opts = opts || {};
    this.maxLength = opts.maxLength || DEFAULT_MAX_LENGTH;
  
    this.offset = 0;
    this.left = 0;
    this.length = 0;
    this.buf = null;
  
    this.state = ST_LENGTH;
  }