MCPcopy Create free account
hub / github.com/coder/coder / readDelta

Method readDelta

aibridge/intercept/responses/base.go:468–475  ·  view source on GitHub ↗

readDelta returns only the bytes appended after the last readDelta call.

()

Source from the content-addressed store, hash-verified

466// readDelta returns only the bytes appended
467// after the last readDelta call.
468func (d *deltaBuffer) readDelta() []byte {
469 d.mu.Lock()
470 defer d.mu.Unlock()
471
472 b := bytes.Clone(d.buf.Bytes())
473 d.buf.Reset()
474 return b
475}

Callers 2

ProcessRequestMethod · 0.80
readAllMethod · 0.80

Calls 5

ResetMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45
CloneMethod · 0.45
BytesMethod · 0.45

Tested by

no test coverage detected