MCPcopy Create free account
hub / github.com/freecodexyz/free-code / write

Function write

src/utils/bufferedWriter.ts:83–94  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

81
82 return {
83 write(content: string): void {
84 if (immediateMode) {
85 writeFn(content)
86 return
87 }
88 buffer.push(content)
89 bufferBytes += content.length
90 scheduleFlush()
91 if (buffer.length >= maxBufferSize || bufferBytes >= maxBufferBytes) {
92 flushDeferred()
93 }
94 },
95 flush,
96 dispose(): void {
97 flush()

Callers

nothing calls this directly

Calls 3

writeFnFunction · 0.85
scheduleFlushFunction · 0.85
flushDeferredFunction · 0.85

Tested by

no test coverage detected