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

Function hasTruePrefix

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

Source from the content-addressed store, hash-verified

727}
728
729func hasTruePrefix(b []byte) bool {
730 return len(b) >= 4 && string(b[:4]) == "true"
731}
732
733func hasFalsePrefix(b []byte) bool {
734 return len(b) >= 5 && string(b[:5]) == "false"

Callers 3

BenchmarkHasTruePrefixFunction · 0.85
parseTrueMethod · 0.85
decodeBoolMethod · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkHasTruePrefixFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…