(b: Uint8Array, pos: number, len: number)
| 140 | } |
| 141 | |
| 142 | public readBytes(b: Uint8Array, pos: number, len: number): number { |
| 143 | this._needed = len; |
| 144 | this._outpos = pos; |
| 145 | this._output = b; |
| 146 | if (len > 0) { |
| 147 | while (this._inflateLoop()) { |
| 148 | // inflating... |
| 149 | } |
| 150 | } |
| 151 | return len - this._needed; |
| 152 | } |
| 153 | |
| 154 | private _inflateLoop(): boolean { |
| 155 | switch (this._state) { |
no test coverage detected