MCPcopy Create free account
hub / github.com/CodisLabs/codis / NewInt

Function NewInt

pkg/proxy/redis/resp.go:80–85  ·  view source on GitHub ↗
(value []byte)

Source from the content-addressed store, hash-verified

78}
79
80func NewInt(value []byte) *Resp {
81 r := &Resp{}
82 r.Type = TypeInt
83 r.Value = value
84 return r
85}
86
87func NewBulkBytes(value []byte) *Resp {
88 r := &Resp{}

Callers 2

TestEncodeIntFunction · 0.85
TestEncodeArrayFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEncodeIntFunction · 0.68
TestEncodeArrayFunction · 0.68