MCPcopy Create free account
hub / github.com/JordanCoin/codemap / newCappedStringWriter

Function newCappedStringWriter

cmd/hooks.go:65–67  ·  view source on GitHub ↗
(maxBytes int)

Source from the content-addressed store, hash-verified

63}
64
65func newCappedStringWriter(maxBytes int) *cappedStringWriter {
66 return &cappedStringWriter{maxBytes: maxBytes}
67}
68
69func (w *cappedStringWriter) Write(p []byte) (int, error) {
70 if w.maxBytes <= 0 {

Callers 3

TestCappedStringWriterFunction · 0.85
showDiffVsMainFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCappedStringWriterFunction · 0.68