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

Function decode

src/common/codec.ts:18–19  ·  view source on GitHub ↗
(str: string, pos: number)

Source from the content-addressed store, hash-verified

16export const encode = (num: number): string => ENCODE[num & MASK6];
17
18export const decode = (str: string, pos: number): number =>
19 mapGet(DECODE, str[pos]) ?? 0;
20
21// Fallback is not cryptographically secure but tolerable for ReactNative UUIDs.
22export const getRandomValues = GLOBAL.crypto

Callers 1

decodeHlcFunction · 0.90

Calls 1

mapGetFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…