MCPcopy Index your code
hub / github.com/tinyplex/tinybase / encode

Function encode

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:685–685  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

683 /* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index])
684);
685var encode = (num) => ENCODE[num & MASK6];
686var decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
687var getRandomValues = GLOBAL.crypto ? (array) => GLOBAL.crypto.getRandomValues(array) : (
688 /* istanbul ignore next */

Callers 3

getUniqueIdFunction · 0.70
getClientIdFromUniqueIdFunction · 0.70
encodeHlcFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…