MCPcopy
hub / github.com/buger/jsonparser / equalStr

Function equalStr

bytes_safe.go:12–14  ·  view source on GitHub ↗

See fastbytes_unsafe.go for explanation on why *[]byte is used (signatures must be consistent with those in that file)

(b *[]byte, s string)

Source from the content-addressed store, hash-verified

10// See fastbytes_unsafe.go for explanation on why *[]byte is used (signatures must be consistent with those in that file)
11
12func equalStr(b *[]byte, s string) bool {
13 return string(*b) == s
14}
15
16func parseFloat(b *[]byte) (float64, error) {
17 return strconv.ParseFloat(string(*b), 64)

Callers 4

TestEqualFunction · 0.70
BenchmarkEqualStrFunction · 0.70
searchKeysFunction · 0.70
EachKeyFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestEqualFunction · 0.56
BenchmarkEqualStrFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…