MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / encodeNewWord

Function encodeNewWord

lib/utils.ts:490–498  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488 let bits = 0;
489
490 function encodeNewWord() {
491 // Get first 5 bits
492 const word = digest & 0b11111;
493 const character = BASE32_ALPHABET[word];
494 output += character;
495 bits -= 5;
496 // Shift out the newly processed word
497 digest = digest >>> 5;
498 }
499
500 for (const byte of buffer) {
501 // Append current byte to digest

Callers 1

base32EncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected