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

Method NullBulkString

encoding/resp/resp.go:103–106  ·  view source on GitHub ↗

NullBulkString builds a RESP null bulkstring

()

Source from the content-addressed store, hash-verified

101
102// NullBulkString builds a RESP null bulkstring
103func (r *Encoder) NullBulkString() error {
104 _, err := r.w.Write([]byte("$-1\r\n"))
105 return err
106}
107
108// Integer builds a RESP integer
109func (r *Encoder) Integer(v int64) error {

Callers 1

Implementers 1

Encoderencoding/resp/resp.go

Calls 1

WriteMethod · 0.80

Tested by 1