MCPcopy 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
58func NewEncoderSize(w io.Writer, size int) *Encoder {
59 return NewEncoderBuffer(bufio2.NewWriterSize(w, size))
60}
61
62func NewEncoderBuffer(bw *bufio2.Writer) *Encoder {
63 return &Encoder{bw: bw}

Callers 1

newBenchmarkEncoderFunction · 0.85

Calls 1

NewEncoderBufferFunction · 0.85

Tested by 1

newBenchmarkEncoderFunction · 0.68