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

Method DecodeMultiBulk

pkg/proxy/redis/decoder.go:95–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (d *Decoder) DecodeMultiBulk() ([]*Resp, error) {
96 if d.Err != nil {
97 return nil, errors.Trace(ErrFailedDecoder)
98 }
99 m, err := d.decodeMultiBulk()
100 if err != nil {
101 d.Err = err
102 }
103 return m, err
104}
105
106func Decode(r io.Reader) (*Resp, error) {
107 return NewDecoder(r).Decode()

Callers 3

loopReaderMethod · 0.80
DecodeMultiBulkFromBytesFunction · 0.80
benchmarkDecodeFunction · 0.80

Calls 1

decodeMultiBulkMethod · 0.95

Tested by 1

benchmarkDecodeFunction · 0.64