MCPcopy Create free account
hub / github.com/distributedio/titan / ReplyArray

Function ReplyArray

encoding/resp/resp.go:40–46  ·  view source on GitHub ↗

ReplyArray replies an array

(w io.Writer, size int)

Source from the content-addressed store, hash-verified

38
39// ReplyArray replies an array
40func ReplyArray(w io.Writer, size int) (*Encoder, error) {
41 r := NewEncoder(w)
42 if err := r.Array(size); err != nil {
43 return nil, err
44 }
45 return r, nil
46}
47
48// ReadError reads an error
49func ReadError(r io.Reader) (string, error) {

Callers 6

RedisCommandFunction · 0.92
TimeFunction · 0.92
ScanFunction · 0.92
ExecFunction · 0.92
HScanFunction · 0.92
BytesArrayFunction · 0.92

Calls 2

ArrayMethod · 0.95
NewEncoderFunction · 0.85

Tested by

no test coverage detected