MCPcopy Index your code
hub / github.com/codehamr/codehamr / droppedBytes

Method droppedBytes

internal/tools/bash.go:267–272  ·  view source on GitHub ↗

droppedBytes is how many middle bytes the ring discarded; 0 while the whole output still fits head+tail.

()

Source from the content-addressed store, hash-verified

265// droppedBytes is how many middle bytes the ring discarded; 0 while the whole
266// output still fits head+tail.
267func (w *headTailBuffer) droppedBytes() int64 {
268 if d := w.tailBytes - int64(len(w.ring)); d > 0 {
269 return d
270 }
271 return 0
272}
273
274// totalBytes is the full combined output size as written, kept or not.
275func (w *headTailBuffer) totalBytes() int64 {

Callers 2

BashFunction · 0.95
StringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected