()
| 348 | } |
| 349 | |
| 350 | readVarUint32Small7(): number { |
| 351 | const readIdx = this.cursor; |
| 352 | if (this.byteLength - readIdx > 0) { |
| 353 | const v = this.dataView.getUint8(readIdx); |
| 354 | if ((v & 0x80) === 0) { |
| 355 | this.cursor = readIdx + 1; |
| 356 | return v; |
| 357 | } |
| 358 | } |
| 359 | return this.readVarUint32Small14(); |
| 360 | } |
| 361 | |
| 362 | private readVarUint32Small14(): number { |
| 363 | const readIdx = this.cursor; |
no test coverage detected