MCPcopy
hub / github.com/redis/go-redis / Atoi

Function Atoi

internal/util/strconv.go:5–7  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

3import "strconv"
4
5func Atoi(b []byte) (int, error) {
6 return strconv.Atoi(BytesToString(b))
7}
8
9func ParseInt(b []byte, base int, bitSize int) (int64, error) {
10 return strconv.ParseInt(BytesToString(b), base, bitSize)

Callers 4

ScanFunction · 0.92
replyLenFunction · 0.92
TestAtoiFunction · 0.85

Calls 1

BytesToStringFunction · 0.70

Tested by 1

TestAtoiFunction · 0.68