Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
105
func
(p *page) ref() { p.refc.ref() }
106
107
func
(p *page) unref() { p.refc.unref(
func
() { pagePool.Put(p) }) }
108
109
func
(p *page) slice(begin, end int64) []byte {
110
i, j := begin-p.offset, end-p.offset
Callers
13
WriteTo
Method · 0.45
TestPageBufferWriteReadSeek
Function · 0.45
TestPageRefWriteReadSeek
Function · 0.45
TestPageRefReadByte
Function · 0.45
readFromVersion1
Method · 0.45
writeToVersion1
Method · 0.45
WriteRequest
Function · 0.45
unref
Method · 0.45
Truncate
Method · 0.45
unref
Method · 0.45
unref
Method · 0.45
readFromVersion2
Method · 0.45
Calls
1
Put
Method · 0.80
Tested by
3
TestPageBufferWriteReadSeek
Function · 0.36
TestPageRefWriteReadSeek
Function · 0.36
TestPageRefReadByte
Function · 0.36