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

Method Array

encoding/resp/resp.go:116–120  ·  view source on GitHub ↗

Array builds a RESP array

(size int)

Source from the content-addressed store, hash-verified

114
115// Array builds a RESP array
116func (r *Encoder) Array(size int) error {
117 s := strconv.Itoa(size)
118 _, err := r.w.Write([]byte("*" + s + "\r\n"))
119 return err
120}
121
122// Decoder implements the decoder interface
123type Decoder struct {

Callers 2

TestArray_EncodeFunction · 0.95
ReplyArrayFunction · 0.95

Implementers 1

Encoderencoding/resp/resp.go

Calls 1

WriteMethod · 0.80

Tested by 1

TestArray_EncodeFunction · 0.76