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

Function init

pkg/proxy/redis/encoder.go:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23)
24
25func init() {
26 var b bytes.Buffer
27 for i := range itoaOffset {
28 itoaOffset[i] = uint32(b.Len())
29 b.WriteString(strconv.Itoa(i + minItoa))
30 }
31 itoaBuffer = b.String()
32}
33
34func itoa(i int64) string {
35 if i >= minItoa && i <= maxItoa {

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
LenMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected