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

Function createByte

public/javascripts/socket.io.js:6385–6387  ·  view source on GitHub ↗
(codePoint, shift)

Source from the content-addressed store, hash-verified

6383 /*--------------------------------------------------------------------------*/
6384
6385 function createByte(codePoint, shift) {
6386 return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80);
6387 }
6388
6389 function encodeCodePoint(codePoint) {
6390 if ((codePoint & 0xFFFFFF80) == 0) { // 1-byte sequence

Callers 1

encodeCodePointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected