MCPcopy Create free account
hub / github.com/segmentio/encoding / hasFalsePrefix

Function hasFalsePrefix

json/parse.go:733–735  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

731}
732
733func hasFalsePrefix(b []byte) bool {
734 return len(b) >= 5 && string(b[:5]) == "false"
735}
736
737func hasPrefix(b []byte, s string) bool {
738 return len(b) >= len(s) && s == string(b[:len(s)])

Callers 3

BenchmarkHasFalsePrefixFunction · 0.85
parseFalseMethod · 0.85
decodeBoolMethod · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkHasFalsePrefixFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…