(min)
| 40 | } |
| 41 | |
| 42 | _grow(min) { |
| 43 | let size = this._buf.length * 2; |
| 44 | while (size < min) { |
| 45 | size *= 2; |
| 46 | } |
| 47 | const buf = Buffer.alloc(size); |
| 48 | this._buf.copy(buf, 0); |
| 49 | this._buf = buf; |
| 50 | } |
| 51 | |
| 52 | addText(text) { |
| 53 | this._buffer = undefined; |
no test coverage detected