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

Function encode

src/common/codec.ts:16–16  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

14) as any;
15
16export const encode = (num: number): string => ENCODE[num & MASK6];
17
18export const decode = (str: string, pos: number): number =>
19 mapGet(DECODE, str[pos]) ?? 0;

Callers 4

getClientIdFromUniqueIdFunction · 0.90
encodeHlcFunction · 0.90
getUniqueIdFunction · 0.70
saveTableFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…