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

Function hasNullPrefix

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

Source from the content-addressed store, hash-verified

723}
724
725func hasNullPrefix(b []byte) bool {
726 return len(b) >= 4 && string(b[:4]) == "null"
727}
728
729func hasTruePrefix(b []byte) bool {
730 return len(b) >= 4 && string(b[:4]) == "true"

Callers 15

BenchmarkHasNullPrefixFunction · 0.85
parseNullMethod · 0.85
decodeNullMethod · 0.85
decodeBoolMethod · 0.85
decodeIntMethod · 0.85
decodeInt8Method · 0.85
decodeInt16Method · 0.85
decodeInt32Method · 0.85
decodeInt64Method · 0.85
decodeUintMethod · 0.85
decodeUintptrMethod · 0.85
decodeUint8Method · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkHasNullPrefixFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…