Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
47
function
encodeCursor(data: CursorData): string {
48
return
Buffer.from(JSON.stringify(data)).toString(
'base64'
)
49
}
50
51
export
function
decodeCursor(cursor: string): CursorData | null {
52
try {
Callers
1
listLogs
Function · 0.70
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected