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

Function getJsonSize

apps/sim/lib/execution/event-buffer.ts:177–183  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

175}
176
177function getJsonSize(value: unknown): number | null {
178 try {
179 return Buffer.byteLength(JSON.stringify(value), 'utf8')
180 } catch {
181 return null
182 }
183}
184
185function getExecutionEventEntryJson(entry: ExecutionEventEntry): string {
186 return JSON.stringify(entry)

Callers 2

compactEventForBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected