MCPcopy
hub / github.com/nats-io/nats.go / buffered

Method buffered

nats.go:2221–2226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2219}
2220
2221func (w *natsWriter) buffered() int {
2222 if w.pending != nil {
2223 return w.pending.Len()
2224 }
2225 return len(w.bufs)
2226}
2227
2228func (w *natsWriter) switchToPending() {
2229 w.pending = new(bytes.Buffer)

Callers 2

flusherMethod · 0.80
BufferedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected