MCPcopy Index your code
hub / github.com/simstudioai/sim / encodeCursor

Function encodeCursor

apps/sim/lib/logs/list-logs.ts:47–49  ·  view source on GitHub ↗
(data: CursorData)

Source from the content-addressed store, hash-verified

45}
46
47function encodeCursor(data: CursorData): string {
48 return Buffer.from(JSON.stringify(data)).toString('base64')
49}
50
51export function decodeCursor(cursor: string): CursorData | null {
52 try {

Callers 1

listLogsFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected