Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CodisLabs/codis
/ NewEncoderSize
Function
NewEncoderSize
pkg/proxy/redis/encoder.go:58–60 ·
view source on GitHub ↗
(w io.Writer, size int)
Source
from the content-addressed store, hash-verified
56
}
57
58
func
NewEncoderSize(w io.Writer, size int) *Encoder {
59
return
NewEncoderBuffer(bufio2.NewWriterSize(w, size))
60
}
61
62
func
NewEncoderBuffer(bw *bufio2.Writer) *Encoder {
63
return
&Encoder{bw: bw}
Callers
1
newBenchmarkEncoder
Function · 0.85
Calls
1
NewEncoderBuffer
Function · 0.85
Tested by
1
newBenchmarkEncoder
Function · 0.68