(encoding)
| 27664 | |
| 27665 | |
| 27666 | function assertEncoding(encoding) { |
| 27667 | if (encoding && !isBufferEncoding(encoding)) { |
| 27668 | throw new Error('Unknown encoding: ' + encoding); |
| 27669 | } |
| 27670 | } |
| 27671 | |
| 27672 | // StringDecoder provides an interface for efficiently splitting a series of |
| 27673 | // buffers into a series of JS strings without breaking apart multi-byte |