MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / writeRedisArrayHeader

Function writeRedisArrayHeader

internal/api/redis_queue_protocol.go:551–557  ·  view source on GitHub ↗
(writer *bufio.Writer, count int)

Source from the content-addressed store, hash-verified

549}
550
551func writeRedisArrayHeader(writer *bufio.Writer, count int) error {
552 if writer == nil {
553 return net.ErrClosed
554 }
555 _, errWrite := writer.WriteString("*" + strconv.Itoa(count) + "\r\n")
556 return errWrite
557}
558
559func writeRedisPubSubSubscribe(writer *bufio.Writer, channel string, count int) error {
560 if errWrite := writeRedisArrayHeader(writer, 3); errWrite != nil {

Callers 4

writeRedisPubSubMessageFunction · 0.85
writeRedisPubSubPongFunction · 0.85

Calls 1

WriteStringMethod · 0.80

Tested by

no test coverage detected