MCPcopy Create free account
hub / github.com/brimdata/super / Unref

Method Unref

sbuf/batch.go:150–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148func (b *pullerBatch) Ref() { b.refs.Add(1) }
149
150func (b *pullerBatch) Unref() {
151 if refs := b.refs.Add(-1); refs == 0 {
152 pullerBatchPool.Put(b)
153 } else if refs < 0 {
154 panic("sbuf: negative batch reference count")
155 }
156}
157
158func (p *pullerBatch) Values() []super.Value { return p.vals }
159

Callers

nothing calls this directly

Calls 2

PutMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected