(buf)
| 57 | ).toString(this.encoding); |
| 58 | } |
| 59 | end(buf) { |
| 60 | let out = buf !== undefined && buf.length ? this.write(buf) : ""; |
| 61 | if (this.__td) out += this.__td.decode(); |
| 62 | else if (this.__rem) { |
| 63 | out += this.__rem.toString(this.encoding); |
| 64 | this.__rem = null; |
| 65 | } |
| 66 | return out; |
| 67 | } |
| 68 | text(buf, offset) { return this.write(buf.slice(offset)); } |
| 69 | } |
| 70 |
no test coverage detected