MCPcopy Index your code
hub / github.com/CodisLabs/codis / NewEncoder

Function NewEncoder

pkg/proxy/redis/encoder.go:54–56  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

52var ErrFailedEncoder = errors.New("use of failed encoder")
53
54func NewEncoder(w io.Writer) *Encoder {
55 return NewEncoderBuffer(bufio2.NewWriterSize(w, 8192))
56}
57
58func NewEncoderSize(w io.Writer, size int) *Encoder {
59 return NewEncoderBuffer(bufio2.NewWriterSize(w, size))

Callers 1

EncodeFunction · 0.85

Calls 1

NewEncoderBufferFunction · 0.85

Tested by

no test coverage detected