MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / appendBounded

Function appendBounded

tooling/scripts/perf-desktop-runtime.mjs:270–273  ·  view source on GitHub ↗
(buffer, chunk, maxLength = 20000)

Source from the content-addressed store, hash-verified

268}
269
270function appendBounded(buffer, chunk, maxLength = 20000) {
271 const next = `${buffer}${chunk}`
272 return next.length > maxLength ? next.slice(next.length - maxLength) : next
273}
274
275function startDesktopRuntime({ debugPort, userDataRoot, disablePersistedMetaCache, appPath }) {
276 const runtimePath = appPath ? packagedAppExecutablePath(appPath) : electronPath

Callers 1

startDesktopRuntimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected