Decode a chunk, holding back any trailing partial multibyte sequence.
(chunk: Buffer)
| 912 | private decoder = new StringDecoder("utf8"); |
| 913 | /** Decode a chunk, holding back any trailing partial multibyte sequence. */ |
| 914 | write(chunk: Buffer): string { |
| 915 | return this.decoder.write(chunk); |
| 916 | } |
| 917 | /** Flush any buffered bytes once the stream has ended. */ |
| 918 | end(): string { |
| 919 | return this.decoder.end(); |
no outgoing calls