| 6423 | /*--------------------------------------------------------------------------*/ |
| 6424 | |
| 6425 | function readContinuationByte() { |
| 6426 | if (byteIndex >= byteCount) { |
| 6427 | throw Error('Invalid byte index'); |
| 6428 | } |
| 6429 | |
| 6430 | var continuationByte = byteArray[byteIndex] & 0xFF; |
| 6431 | byteIndex++; |
| 6432 | |
| 6433 | if ((continuationByte & 0xC0) == 0x80) { |
| 6434 | return continuationByte & 0x3F; |
| 6435 | } |
| 6436 | |
| 6437 | // If we end up here, it’s not a continuation byte. |
| 6438 | throw Error('Invalid continuation byte'); |
| 6439 | } |
| 6440 | |
| 6441 | function decodeSymbol() { |
| 6442 | var byte1; |