MCPcopy
hub / github.com/redis/go-redis / writeLen

Method writeLen

internal/proto/writer.go:55–60  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

53}
54
55func (w *Writer) writeLen(n int) error {
56 w.lenBuf = strconv.AppendUint(w.lenBuf[:0], uint64(n), 10)
57 w.lenBuf = append(w.lenBuf, '\r', '\n')
58 _, err := w.Write(w.lenBuf)
59 return err
60}
61
62func (w *Writer) WriteArg(v interface{}) error {
63 switch v := v.(type) {

Callers 2

WriteArgsMethod · 0.95
bytesMethod · 0.95

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected