(data)
| 19 | } |
| 20 | |
| 21 | setInput(data) { |
| 22 | if (!data) { |
| 23 | //FIXME: flush remaining data. |
| 24 | /* eslint-disable camelcase */ |
| 25 | this.strm.input = null; |
| 26 | this.strm.avail_in = 0; |
| 27 | this.strm.next_in = 0; |
| 28 | } else { |
| 29 | this.strm.input = data; |
| 30 | this.strm.avail_in = this.strm.input.length; |
| 31 | this.strm.next_in = 0; |
| 32 | /* eslint-enable camelcase */ |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | inflate(expected) { |
| 37 | // resize our output buffer if it's too small |
no outgoing calls
no test coverage detected