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

Function NewWriter

internal/proto/writer.go:28–35  ·  view source on GitHub ↗
(wr writer)

Source from the content-addressed store, hash-verified

26}
27
28func NewWriter(wr writer) *Writer {
29 return &Writer{
30 writer: wr,
31
32 lenBuf: make([]byte, 64),
33 numBuf: make([]byte, 64),
34 }
35}
36
37func (w *Writer) WriteArgs(args []interface{}) error {
38 if err := w.WriteByte(RespArray); err != nil {

Callers 3

writer_test.goFile · 0.92
NewConnWithBufferSizeFunction · 0.92

Calls

no outgoing calls

Tested by 1