Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ Size
Method
Size
protocol/buffer.go:135–135 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
133
func
(p *page) Len() int {
return
p.length }
134
135
func
(p *page) Size() int64 {
return
int64(p.length) }
136
137
func
(p *page) Truncate(n int) {
138
if
n < p.length {
Callers
12
WriteTo
Method · 0.45
TestPageBufferWriteReadSeek
Function · 0.45
TestPageRefWriteReadSeek
Function · 0.45
TestPageRefReadByte
Function · 0.45
readMessage
Function · 0.45
writeToVersion1
Method · 0.45
WriteRequest
Function · 0.45
structEncodeFuncOf
Function · 0.45
array
Method · 0.45
makeArray
Function · 0.45
writeToVersion2
Method · 0.45
WriteResponse
Function · 0.45
Calls
no outgoing calls
Tested by
3
TestPageBufferWriteReadSeek
Function · 0.36
TestPageRefWriteReadSeek
Function · 0.36
TestPageRefReadByte
Function · 0.36