(s: State)
| 171 | return 0; |
| 172 | } |
| 173 | function decodeVarLenUnsignedByte(s: State): number { |
| 174 | if (s.bitOffset >= 16) { |
| 175 | s.accumulator32 = (s.shortBuffer[s.halfOffset++] << 16) | (s.accumulator32 >>> 16); |
| 176 | s.bitOffset -= 16; |
| 177 | } |
| 178 | if (readFewBits(s, 1) !== 0) { |
| 179 | const n: number = readFewBits(s, 3); |
| 180 | if (n === 0) { |
| 181 | return 1; |
| 182 | } |
| 183 | return readFewBits(s, n) + (1 << n); |
| 184 | } |
| 185 | return 0; |
| 186 | } |
| 187 | function decodeMetaBlockLength(s: State): number { |
| 188 | if (s.bitOffset >= 16) { |
| 189 | s.accumulator32 = (s.shortBuffer[s.halfOffset++] << 16) | (s.accumulator32 >>> 16); |
no test coverage detected
searching dependent graphs…