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

Function DecodeFromBytes

pkg/proxy/redis/decoder.go:110–112  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

108}
109
110func DecodeFromBytes(p []byte) (*Resp, error) {
111 return NewDecoder(bytes.NewReader(p)).Decode()
112}
113
114func DecodeMultiBulkFromBytes(p []byte) ([]*Resp, error) {
115 return NewDecoder(bytes.NewReader(p)).DecodeMultiBulk()

Callers 5

TestDecodeSimpleRequest1Function · 0.85
TestDecodeSimpleRequest3Function · 0.85
TestDecodeBulkBytesFunction · 0.85
TestDecoderFunction · 0.85

Calls 2

NewDecoderFunction · 0.85
DecodeMethod · 0.80

Tested by 5

TestDecodeSimpleRequest1Function · 0.68
TestDecodeSimpleRequest3Function · 0.68
TestDecodeBulkBytesFunction · 0.68
TestDecoderFunction · 0.68