MCPcopy Create free account
hub / github.com/tinyplex/tinybase / decode

Function decode

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:686–686  ·  view source on GitHub ↗
(str, pos)

Source from the content-addressed store, hash-verified

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 */
689 (array) => arrayMap(array, () => mathFloor(mathRandom() * 256))

Callers 1

decodeHlcFunction · 0.70

Calls 1

mapGetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…