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

Function Encode

pkg/proxy/redis/encoder.go:100–102  ·  view source on GitHub ↗
(w io.Writer, r *Resp)

Source from the content-addressed store, hash-verified

98}
99
100func Encode(w io.Writer, r *Resp) error {
101 return NewEncoder(w).Encode(r, true)
102}
103
104func EncodeToBytes(r *Resp) ([]byte, error) {
105 var b = &bytes.Buffer{}

Callers 1

EncodeToBytesFunction · 0.85

Calls 2

NewEncoderFunction · 0.85
EncodeMethod · 0.45

Tested by

no test coverage detected