MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / readContinuationByte

Function readContinuationByte

public/javascripts/socket.io.js:6425–6439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

decodeSymbolFunction · 0.85

Calls 1

ErrorClass · 0.85

Tested by

no test coverage detected