MCPcopy Index your code
hub / github.com/coder/coder / TotalWritten

Method TotalWritten

agent/agentproc/headtail.go:197–201  ·  view source on GitHub ↗

TotalWritten returns the total number of bytes written to the buffer, which may exceed the stored capacity.

()

Source from the content-addressed store, hash-verified

195// TotalWritten returns the total number of bytes written to
196// the buffer, which may exceed the stored capacity.
197func (b *HeadTailBuffer) TotalWritten() int {
198 b.mu.Lock()
199 defer b.mu.Unlock()
200 return b.totalBytes
201}
202
203// Output returns the truncated output suitable for LLM
204// consumption, along with truncation metadata. If the total

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45