MCPcopy
hub / github.com/segmentio/kafka-go / unref

Method unref

protocol/buffer.go:107–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105func (p *page) ref() { p.refc.ref() }
106
107func (p *page) unref() { p.refc.unref(func() { pagePool.Put(p) }) }
108
109func (p *page) slice(begin, end int64) []byte {
110 i, j := begin-p.offset, end-p.offset

Callers 13

WriteToMethod · 0.45
TestPageRefWriteReadSeekFunction · 0.45
TestPageRefReadByteFunction · 0.45
readFromVersion1Method · 0.45
writeToVersion1Method · 0.45
WriteRequestFunction · 0.45
unrefMethod · 0.45
TruncateMethod · 0.45
unrefMethod · 0.45
unrefMethod · 0.45
readFromVersion2Method · 0.45

Calls 1

PutMethod · 0.80

Tested by 3

TestPageRefWriteReadSeekFunction · 0.36
TestPageRefReadByteFunction · 0.36