MCPcopy
hub / github.com/CodisLabs/codis / newConnDecoder

Function newConnDecoder

pkg/proxy/redis/conn.go:86–90  ·  view source on GitHub ↗
(conn *Conn, bufsize int)

Source from the content-addressed store, hash-verified

84}
85
86func newConnDecoder(conn *Conn, bufsize int) *Decoder {
87 r := &connReader{Conn: conn}
88 r.Slice = unsafe2.MakeSlice(bufsize)
89 return NewDecoderBuffer(bufio2.NewReaderBuffer(r, r.Buffer()))
90}
91
92func (r *connReader) Read(b []byte) (int, error) {
93 if timeout := r.ReaderTimeout; timeout != 0 {

Callers 1

NewConnFunction · 0.85

Calls 2

NewDecoderBufferFunction · 0.85
BufferMethod · 0.65

Tested by

no test coverage detected