Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ getContentBytes
Function
getContentBytes
apps/sim/app/api/files/parse/route.ts:74–76 ·
view source on GitHub ↗
(content: unknown)
Source
from the content-addressed store, hash-verified
72
}
73
74
function
getContentBytes(content: unknown): number {
75
return
typeof content ===
'string'
? Buffer.byteLength(content,
'utf8'
) : 0
76
}
77
78
/**
79
* Main API route handler
Callers
1
route.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected