MCPcopy Index your code
hub / github.com/CodisLabs/codis / itoa

Function itoa

pkg/proxy/redis/encoder.go:34–44  ·  view source on GitHub ↗
(i int64)

Source from the content-addressed store, hash-verified

32}
33
34func itoa(i int64) string {
35 if i >= minItoa && i <= maxItoa {
36 beg := itoaOffset[i-minItoa]
37 if i == maxItoa {
38 return itoaBuffer[beg:]
39 }
40 end := itoaOffset[i-minItoa+1]
41 return itoaBuffer[beg:end]
42 }
43 return strconv.FormatInt(i, 10)
44}
45
46type Encoder struct {
47 bw *bufio2.Writer

Callers 2

encodeIntMethod · 0.85
TestItoaFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestItoaFunction · 0.68