(state, chunk, encoding)
| 25578 | }; |
| 25579 | |
| 25580 | function decodeChunk(state, chunk, encoding) { |
| 25581 | if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { |
| 25582 | chunk = bufferShim.from(chunk, encoding); |
| 25583 | } |
| 25584 | return chunk; |
| 25585 | } |
| 25586 | |
| 25587 | // if we're already writing something, then just put this |
| 25588 | // in the queue, and wait our turn. Otherwise, call _write |