()
| 148 | func (b *pullerBatch) Ref() { b.refs.Add(1) } |
| 149 | |
| 150 | func (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 | |
| 158 | func (p *pullerBatch) Values() []super.Value { return p.vals } |
| 159 |